From b5e16188de9da6772bbf223ff0f9e7a70dbd5325 Mon Sep 17 00:00:00 2001 From: Recrown Date: Fri, 22 Sep 2017 11:24:55 -0500 Subject: [PATCH] visualizer visual adjustments --- .../rhythmbullet/audio/visualizer/BasicVisualizer.java | 7 ++----- .../graphics/ui/components/TitleBarVisualizer.java | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/core/src/zero1hd/rhythmbullet/audio/visualizer/BasicVisualizer.java b/core/src/zero1hd/rhythmbullet/audio/visualizer/BasicVisualizer.java index 45fb5a6..e9a73db 100755 --- a/core/src/zero1hd/rhythmbullet/audio/visualizer/BasicVisualizer.java +++ b/core/src/zero1hd/rhythmbullet/audio/visualizer/BasicVisualizer.java @@ -28,14 +28,11 @@ public class BasicVisualizer extends VisualizerCore { public BasicVisualizer() { super(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()/2, 0, 0); - barHeightMultiplier = Gdx.graphics.getHeight()*0.008f; + barHeightMultiplier = Gdx.graphics.getHeight()*0.01f; pixmap = new Pixmap(2, 2, Format.RGBA8888); pixmap.setColor(Color.WHITE); pixmap.fill(); barCount = 70; - barWidth = MathUtils.ceil((float) width/(float) barCount); - spaceBetweenBars = (barWidth-7); - barWidth -= spaceBetweenBars; smoothRange = 4; angleRot = new Vector2(MathUtils.cosDeg(rotation), MathUtils.sinDeg(rotation)); textures = new Texture[barCount]; @@ -103,7 +100,7 @@ public class BasicVisualizer extends VisualizerCore { angleRot.set(MathUtils.cosDeg(rotation), MathUtils.sinDeg(rotation)); barWidth = MathUtils.ceil((float) width/(float) barCount); - spaceBetweenBars = (barWidth-7); + spaceBetweenBars = 1; barWidth -= spaceBetweenBars; for (int i = 0; i < bars.length; i++) { diff --git a/core/src/zero1hd/rhythmbullet/graphics/ui/components/TitleBarVisualizer.java b/core/src/zero1hd/rhythmbullet/graphics/ui/components/TitleBarVisualizer.java index 2ce8709..daaf148 100755 --- a/core/src/zero1hd/rhythmbullet/graphics/ui/components/TitleBarVisualizer.java +++ b/core/src/zero1hd/rhythmbullet/graphics/ui/components/TitleBarVisualizer.java @@ -20,7 +20,6 @@ public class TitleBarVisualizer extends Group implements Disposable { setSize((float) Math.sqrt(Gdx.graphics.getWidth()*Gdx.graphics.getWidth() + Gdx.graphics.getHeight()*Gdx.graphics.getHeight()), Gdx.graphics.getHeight()*0.3f); hvisual = new Visualizer(); addActor(hvisual); - debug(); background = new TitleBarMesh(); background.setHeight((int) MathUtils.round(Gdx.graphics.getHeight()*0.3f)); setRotation((float) (MathUtils.radiansToDegrees*Math.atan2(Gdx.graphics.getHeight()-background.getHeight(), Gdx.graphics.getWidth()))); @@ -50,6 +49,7 @@ public class TitleBarVisualizer extends Group implements Disposable { @Override public void dispose() { + background.dispose(); } @Override