sempdf v1.9.1Functions
Function: hsl()
sempdf / hsl
function hsl(
h,
s,
l): RgbColor;Defined in: src/types.ts:3879
Creates a color from HSL. Converted to an RgbColor for output (HSL is not a native PDF color space).
Parameters
| Parameter | Type | Description |
|---|---|---|
h | number | Hue in degrees; wrapped into [0, 360). |
s | string | number | Saturation as a 0–1 fraction, a percentage string ("87%"), or a 0–100 number. |
l | string | number | Lightness as a 0–1 fraction, a percentage string ("80%"), or a 0–100 number. |
Returns
The equivalent RGB color.