I would advise you to experiment with different values for direction and position until you are satisfied.
Try changing the direction and position
konfetti.build()
.addColors( Color.rgb(244, 195, 88))
.setDirection(0.0, 0.0) // chnage this to set the direction
.setSpeed(1f, 4f)
.setFadeOutEnabled(true)
.setTimeToLive(2000L)
.addShapes(Shape.RECT, Shape.CIRCLE)
.addSizes(Size(12))
.setPosition(-50f, konfetti.width + 50f, -50f, -50f)
…
Top comments (0)