three-nebula API
    Preparing search index...

    Class Life

    Sets the life property on initialized particles.

    Hierarchy

    • default
      • Life
    Index
    • Constructs a Life property instance.

      Parameters

      • Optionalmin: number

        The minimum life

      • Optionalmax: number

        The maximum life

      • Optionalcenter: boolean

        Determines whether to average the life value

      • isEnabled: boolean = true

        Determines if the initializer should be enabled or not

      Returns Life

    isEnabled: boolean
    lifePan: Span<number>
    type: string
    • Sets the particle's initial life.

      Parameters

      • particle: Particle

        the particle to initialize the property on

      Returns void

    • Creates a Life initializer from JSON.

      Parameters

      • json: LifeJSON

        The JSON to construct the instance from.

      Returns Life

    • Determines if the initializer requires a WebGL API to be provided to its constructor.

      Returns boolean