Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Types/ShapeDrawerFunctions

Index

Types Type aliases

ShapeDrawerAfterEffectFunction: (context: <internal>.CanvasRenderingContext2D, particle: IParticle, radius: number, opacity: number, delta: IDelta, pixelRatio: number) => void

Type declaration

    • Shape after draw effect function

      Parameters

      • context: <internal>.CanvasRenderingContext2D

        the canvas context for drawing

      • particle: IParticle

        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

ShapeDrawerDestroyFunction: (container: Container) => void

Type declaration

    • Shape destroy function

      Parameters

      • container: Container

        the container initializing the shape

      Returns void

ShapeDrawerDrawFunction: (context: <internal>.CanvasRenderingContext2D, particle: IParticle, radius: number, opacity: number, delta: IDelta, pixelRatio: number) => void

Type declaration

    • Shape draw function

      Parameters

      • context: <internal>.CanvasRenderingContext2D

        the canvas context for drawing

      • particle: IParticle

        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

ShapeDrawerInitFunction: (container: Container) => Promise<void>

Type declaration

    • Shape init function

      Parameters

      • container: Container

        the container initializing the shape

      Returns Promise<void>

ShapeDrawerLoadFunction: (particle: Particle) => void

Type declaration

    • Shape load function

      Parameters

      • particle: Particle

        the particle using the shape

      Returns void

ShapeDrawerParticleInitFunction: (container: Container, particle: IParticle) => void

Type declaration

    • Shape particle init function

      Parameters

      • container: Container

        the container containing the shape

      • particle: IParticle

        the particle using the shape

      Returns void

ShapeDrawerSidesCountFunction: (particle: IParticle) => number

Type declaration

    • Shape sides count function

      Parameters

      • particle: IParticle

        the particle using the shape

      Returns number

      the number of sides for the used shape