setRGB

fun setRGB(r: Double, g: Double, b: Double, colorSpace: ColorSpace = ColorManagement.workingColorSpace): Color

Sets this color from RGB values.

Return

A reference to this color.

Parameters

r

Red channel value between 0.0 and 1.0.

g

Green channel value between 0.0 and 1.0.

b

Blue channel value between 0.0 and 1.0.

colorSpace

The color space of the inputs (defaults to ColorManagement.workingColorSpace).