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

    Interface FunctionColorGenerator

    A colour that changes over time t in [0, 1] (a particle's life fraction, or the system's cycle): a gradient, or a random blend of two.

    interface FunctionColorGenerator {
        type: "function";
        clone(): FunctionColorGenerator;
        genColor(memory: GeneratorMemory, color: Vector4, t: number): Vector4;
        refreshTable?(): void;
        startGen(memory: GeneratorMemory): void;
        toJSON(): ColorGeneratorJSON;
    }

    Implemented by

    Index
    type: "function"

    'function': the colour depends on t.

    • Writes the colour at t into color.

      Parameters

      Returns Vector4

      color.

    • See FunctionValueGenerator.refreshTable.

      Returns void