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

    Class RandomColorBetweenGradient

    A colour over the particle's life between two gradients, at a mix rolled once per particle (Unity's Random Between Two Gradients). Call startGen with each particle's memory when it spawns.

    Implements

    Index
    gradient1: Gradient

    The first gradient.

    gradient2: Gradient

    The second gradient.

    type: "function"

    Always 'function': the colour changes over the life.

    • Writes into color the mix, at the particle's roll, of the two gradients at t.

      Parameters

      Returns Vector4

      color.

    • Rolls the particle's mix between the gradients into a new slot of memory.

      Parameters

      Returns void