@newkrok/three-particles - v2.4.0
    Preparing search index...

    Type Alias Rgb

    Represents an RGB color with normalized values (0.0 to 1.0).

    // Pure red
    const red: Rgb = { r: 1.0, g: 0.0, b: 0.0 };

    // Pure white
    const white: Rgb = { r: 1.0, g: 1.0, b: 1.0 };

    // Orange
    const orange: Rgb = { r: 1.0, g: 0.5, b: 0.0 };
    type Rgb = {
        b?: number;
        g?: number;
        r?: number;
    }
    Index

    Properties

    Properties

    b?: number

    Blue channel (0.0 to 1.0)

    g?: number

    Green channel (0.0 to 1.0)

    r?: number

    Red channel (0.0 to 1.0)