Skip to content

Color

Defined in: radiance/src/math/Color.ts:2

A linear RGB colour. Components are not clamped: an emission may be far above 1.

new Color(r?, g?, b?): Color

Defined in: radiance/src/math/Color.ts:3

number = 1

number = 1

number = 1

Color

b: number = 1

Defined in: radiance/src/math/Color.ts:6


g: number = 1

Defined in: radiance/src/math/Color.ts:5


r: number = 1

Defined in: radiance/src/math/Color.ts:4

clone(): Color

Defined in: radiance/src/math/Color.ts:29

Color


copy(c): this

Defined in: radiance/src/math/Color.ts:25

Color

this


equals(c): boolean

Defined in: radiance/src/math/Color.ts:37

Color

boolean


multiplyScalar(s): this

Defined in: radiance/src/math/Color.ts:33

number

this


set(r, g, b): this

Defined in: radiance/src/math/Color.ts:9

number

number

number

this


setHex(hex): this

Defined in: radiance/src/math/Color.ts:17

From a 0xRRGGBB number in sRGB, decoded to linear.

number

this


toArray(): [number, number, number]

Defined in: radiance/src/math/Color.ts:41

[number, number, number]