minor changes to visualizer appearance
This commit is contained in:
parent
6fb5744048
commit
658f4fa807
@ -27,13 +27,13 @@ public class BasicVisualizer extends VisualizerCore {
|
|||||||
|
|
||||||
public BasicVisualizer() {
|
public BasicVisualizer() {
|
||||||
super(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()/2, 0, 0);
|
super(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()/2, 0, 0);
|
||||||
barHeightMultiplier = Gdx.graphics.getHeight()*0.01f;
|
barHeightMultiplier = Gdx.graphics.getHeight()*0.008f;
|
||||||
pixmap = new Pixmap(2, 2, Format.RGBA8888);
|
pixmap = new Pixmap(2, 2, Format.RGBA8888);
|
||||||
pixmap.setColor(Color.GRAY);
|
pixmap.setColor(Color.GRAY);
|
||||||
pixmap.fill();
|
pixmap.fill();
|
||||||
barCount = 70;
|
barCount = 70;
|
||||||
barWidth = MathUtils.ceil((float) width/(float) barCount);
|
barWidth = MathUtils.ceil((float) width/(float) barCount);
|
||||||
spaceBetweenBars = (barWidth-2);
|
spaceBetweenBars = (barWidth-7);
|
||||||
barWidth -= spaceBetweenBars;
|
barWidth -= spaceBetweenBars;
|
||||||
smoothRange = 4;
|
smoothRange = 4;
|
||||||
angleRad = new Vector2(MathUtils.cosDeg(rotation), MathUtils.sinDeg(rotation));
|
angleRad = new Vector2(MathUtils.cosDeg(rotation), MathUtils.sinDeg(rotation));
|
||||||
|
Loading…
Reference in New Issue
Block a user