dos_hlstorgb - dalefugier/DOSLib GitHub Wiki

Converts a Hue-Luminance-Saturation (HLS) color value to Red-Green-Blue (RGB) format.

Syntax

(dos_hlstorgb hue luminance saturation)

Parameters

hue

The hue component of an HLS color value.

luminance

The luminance component of an HLS color value.

saturation

The saturation component of an HLS color value.

Returns

A list containing the red-green-blue values if successful.

nil on error.

Example

Command: (dos_hlstorgb 160 120 240)
(0 0 255)