visualizer visual adjustments
This commit is contained in:
parent
307e118b3a
commit
b5e16188de
@ -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++) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user