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

    Interface ColorGenerator

    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.

    interface ColorGenerator {
        type: "value";
        clone(): ColorGenerator;
        genColor(memory: GeneratorMemory, color: Vector4): Vector4;
        startGen(memory: GeneratorMemory): void;
        toJSON(): ColorGeneratorJSON;
    }

    Implemented by

    Index
    type: "value"

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

    • A copy with the same settings.

      Returns ColorGenerator

    • Writes the colour into color.

      Parameters

      Returns Vector4

      color.