Appearance
zeropdf / rgb
Function: rgb()
ts
function rgb(
r,
g,
b): RgbColor;Defined in: src/types.ts:3043
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.