ShapeDrawerDrawFunction: ((context, particle, radius, opacity, delta, pixelRatio) => void)

Type declaration

    • (context, particle, radius, opacity, delta, pixelRatio): void
    • Shape draw function

      Parameters

      • context: CanvasRenderingContext2D

        the canvas context for drawing

      • particle: Particle

        the particle to be drawn using the shape

      • radius: number

        the particle radius

      • opacity: number

        the particle opacity

      • delta: IDelta

        this variable contains the delta between the current frame and the previous frame

      • pixelRatio: number

        the device pixel ratio, used for retina displays

      Returns void