Luduvo Contents
Theme
On this page

Color3

colors as red, green, and blue channels from 0 to 1

Constructors

1 member Access: shared

new(r: number, g: number, b: number) -> vector

make a color

Parameters
NameTypeDescription
rnumber—
gnumber—
bnumber—
returnsvector—

Representing Colors with RGB Channels

Lifecycle: Shared

Channels run from 0 to 1, not from 0 to 255.

Luau
local warmLight = Color3.new(1.0, 0.85, 0.6)local darkAccent = Color3.new(0.05, 0.05, 0.08)print(string.format("Color RGB: %.2f, %.2f, %.2f", warmLight.x, warmLight.y, warmLight.z))
Output: Color RGB: 1.00, 0.85, 0.60