set

fun set(r: Double, g: Double, b: Double): Color

Sets this color from the RGB components r, g, b (in the working color space). Kotlin equivalent of three.js's numeric set(r, g, b) path.

Return

A reference to this color.


fun set(hex: Int): Color

Sets this color from the hexadecimal value hex (interpreted in colorSpace). Kotlin equivalent of three.js's set(number) path.

Return

A reference to this color.


fun set(color: Color): Color

Copies the components of color into this instance. Kotlin equivalent of three.js's set(Color) path.

Return

A reference to this color.