sempdf v1.9.1Functions
Function: rgb()
sempdf / rgb
function rgb(
r,
g,
b): RgbColor;Defined in: src/types.ts:3724
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.