Skip to main content

Type Alias: Color3

Color3 = [number, number, number]

Represents an RGB color value as a tuple of three numbers.

The Color3 type provides a simple way to define colors in the RGB color space using normalized values between 0 and 1. This format is used throughout the configurator for defining colors of lights, materials, and UI elements.

Example

// Basic colors
const white: Color3 = [1, 1, 1];
const black: Color3 = [0, 0, 0];
const red: Color3 = [1, 0, 0];

// Creating a soft blue color
const skyBlue: Color3 = [0.53, 0.81, 0.98];

// Setting a soft gray for a neutral ground
ground.diffuseColor = [0.85, 0.85, 0.85];