babylon.quarks - v1.0.0
    Preparing search index...

    Class ColorRange

    A colour that is the same over a particle's life once rolled (a start colour): a constant, or a random pick. Generators that keep state per roll keep it in the GeneratorMemory given.

    Implements

    Index
    a b
    type: "value"

    'value': the colour does not change with time.

    • get a(): Vector4

      One end of the range, linear RGBA. Set it from any Color4Like, such as a Babylon Color4; the value is copied.

      Returns Vector4

    • set a(value: Color4Like): void

      One end of the range, linear RGBA. Set it from any Color4Like, such as a Babylon Color4; the value is copied.

      Parameters

      Returns void

    • get b(): Vector4

      The other end. Set it from any Color4Like, such as a Babylon Color4; the value is copied.

      Returns Vector4

    • set b(value: Color4Like): void

      The other end. Set it from any Color4Like, such as a Babylon Color4; the value is copied.

      Parameters

      Returns void

    • Writes the colour into color.

      Parameters

      Returns Vector4

      color.