Function: rgb()
function rgb(
r,
g,
b): RgbColor;
Creates an RGB color object using normalized channel values from 0 to 1.
Parameters
| Parameter | Type | Description |
|---|---|---|
r | number | Red channel value from 0 to 1. |
g | number | Green channel value from 0 to 1. |
b | number | Blue channel value from 0 to 1. |
Returns
The RGB color object.