Skip to content

Commit

Permalink
Demo cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AMNatty committed Apr 14, 2022
1 parent c79886d commit 6725e24
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ public void loop()
.setFitBox(new Rectanglef(50.0f, 50.0f, this.display.getWidth() - 50.0f, this.display.getHeight() - 50.0f))
.setPaint(LiPaint.solidColor(Color.VERY_DARK_GRAY));
ImmediateFontRenderer.drawString(0, 102, "Welcome to PlutoEngine v. %s!".formatted(Pluto.VERSION), BasicApplicationDemoMod.font, welcomeStyle);
float gPos = (System.currentTimeMillis() % 7200) / 20.0f;
ImmediateFontRenderer.drawString(500, 50, "Hue: %f".formatted(gPos), BasicApplicationDemoMod.font, style);

float gPos = (System.currentTimeMillis() % 7200) / 20.0f;
var stops = new LiGradientPaint.Stop[16];
for (int i = 0; i < stops.length; i++)
stops[i] = new LiGradientPaint.Stop(i / (float) stops.length, Color.from(new HSB(gPos + i * 10, 1.0f, 1.0f).toRGBA()));
Expand Down

0 comments on commit 6725e24

Please sign in to comment.