minor changes to visualizer appearance

This commit is contained in:
Harrison Deng 2017-09-11 23:57:15 -05:00
parent 6fb5744048
commit 658f4fa807

View File

@ -27,13 +27,13 @@ public class BasicVisualizer extends VisualizerCore {
public BasicVisualizer() {
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.setColor(Color.GRAY);
pixmap.fill();
barCount = 70;
barWidth = MathUtils.ceil((float) width/(float) barCount);
spaceBetweenBars = (barWidth-2);
spaceBetweenBars = (barWidth-7);
barWidth -= spaceBetweenBars;
smoothRange = 4;
angleRad = new Vector2(MathUtils.cosDeg(rotation), MathUtils.sinDeg(rotation));