Package 

Class Particle

  • All Implemented Interfaces:

    
    public final class Particle
    
                        

    Particle holding exact data to instruct where and how to draw a particle

    • 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 canvas
        y - the absolute y position on the canvas
        width - the current width of the confetti
        height - the current height of a confetti
        color - the color that will be used to paint the confetti
        rotation - the current rotation of the confetti in degrees
        scaleX - the current scale of the confetti used to create a 3D rotation
        shape - the Shape of the confetti such as a circle, square of custom shape
        alpha - the transparency of the confetti between 0 - 255