Represents an RGB color with normalized values (0.0 to 1.0).
// Pure redconst red: Rgb = { r: 1.0, g: 0.0, b: 0.0 };// Pure whiteconst white: Rgb = { r: 1.0, g: 1.0, b: 1.0 };// Orangeconst orange: Rgb = { r: 1.0, g: 0.5, b: 0.0 }; Copy
// Pure redconst red: Rgb = { r: 1.0, g: 0.0, b: 0.0 };// Pure whiteconst white: Rgb = { r: 1.0, g: 1.0, b: 1.0 };// Orangeconst orange: Rgb = { r: 1.0, g: 0.5, b: 0.0 };
Optional
Blue channel (0.0 to 1.0)
Green channel (0.0 to 1.0)
Red channel (0.0 to 1.0)
Represents an RGB color with normalized values (0.0 to 1.0).
Example