-
- All Implemented Interfaces:
public final class ParticleParticle holding exact data to instruct where and how to draw a particle
-
-
Method Summary
-
-
Constructor Detail
-
Particle
Particle(Float x, Float y, Float width, Float height, Integer color, Float rotation, Float scaleX, Shape shape, Integer alpha)
- Parameters:
x- the absolute x position on the canvasy- the absolute y position on the canvaswidth- the current width of the confettiheight- the current height of a confetticolor- the color that will be used to paint the confettirotation- the current rotation of the confetti in degreesscaleX- the current scale of the confetti used to create a 3D rotationshape- the Shape of the confetti such as a circle, square of custom shapealpha- the transparency of the confetti between 0 - 255
-
-
-
-