tsParticles - v0.0.0
    Preparing search index...
    Index

    Constructors

    Properties

    color: IRgb

    The absorber color

    The absorber size limit

    mass: number

    The absorber mass, this increases the attraction force

    name?: string

    The absorber name, useful when retrieving it manually

    opacity: number

    The absorber opacity

    options: Absorber

    Gets the absorber options

    position: Vector

    The absorber position

    size: number

    The absorber size, great size doesn't mean great mass, it depends also on the density

    Methods

    • Absorber attraction interaction, attract the particle to the absorber

      Parameters

      • particle: OrbitingParticle

        the particle to attract to the absorber

      • delta: IDelta

        the delta time of the frame, used for calculating the force between the particles and the absorber

      Returns void

    • The draw method, for drawing the absorber in the canvas

      Parameters

      • context: CanvasRenderingContext2D

        the canvas 2d context used for drawing

      Returns void