DOKK / manpages / debian 12 / plplot-doc / plhlsrgb.3plplot.en
PLHLSRGB(3plplot) PLplot API PLHLSRGB(3plplot)

plhlsrgb - Convert HLS color to RGB

plhlsrgb(h, l, s, p_r, p_g, p_b)

Convert HLS color coordinates to RGB.

Redacted form: General: plhlsrgb(h, l, s, p_r, p_g, p_b)

This function is used in example 2.

PLFLT(3plplot), input)
Hue in degrees (0.0-360.0) on the color cylinder.
PLFLT(3plplot), input)
Lightness expressed as a fraction (0.0-1.0) of the axis of the color cylinder.
PLFLT(3plplot), input)
Saturation expressed as a fraction (0.0-1.0) of the radius of the color cylinder.
PLFLT_NC_SCALAR(3plplot), output)
Returned value of the red intensity (0.0-1.0) of the color.
PLFLT_NC_SCALAR(3plplot), output)
Returned value of the green intensity (0.0-1.0) of the color.
PLFLT_NC_SCALAR(3plplot), output)
Returned value of the blue intensity (0.0-1.0) of the color.

Many developers (who are credited at http://plplot.org/credits.php) have contributed to PLplot over its long history.

PLplot documentation at http://plplot.org/documentation.php.

April, 2023