Skip to content

zeropdf v1.3.0


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

ParameterTypeDescription
rnumberRed channel value from 0 to 1.
gnumberGreen channel value from 0 to 1.
bnumberBlue channel value from 0 to 1.

Returns

RgbColor

The RGB color object.

Released under the ISC license.