plhlsrgb: Convert HLS color to RGB

`plhlsrgb`: Convert HLS color to RGB
Prev | Chapter 18. The Common API for PLplot | Next

#### `plhlsrgb`: Convert HLS color to RGB

`plhlsrgb (` | h,
| l,
| s,
| p_r,
| p_g,
| p_b`)`;

Convert HLS color coordinates to RGB.

`h` (``PLFLT``, input)

  Hue in degrees (0.0-360.0) on the color cylinder.

`l` (``PLFLT``, input)

  Lightness expressed as a fraction (0.0-1.0) of the axis of the color cylinder.

`s` (``PLFLT``, input)

  Saturation expressed as a fraction (0.0-1.0) of the radius of the color cylinder.

`p_r` (``PLFLT_NC_SCALAR``, output)

  Returned value of the red intensity (0.0-1.0) of the color.

`p_g` (``PLFLT_NC_SCALAR``, output)

  Returned value of the green intensity (0.0-1.0) of the color.

`p_b` (``PLFLT_NC_SCALAR``, output)

  Returned value of the blue intensity (0.0-1.0) of the color.

Redacted form:

- General: `plhlsrgb(h, l, s, p_r, p_g, p_b)`

- Perl/PDL: Not available? Implemented as plhls?

This function is used in example 2.

Prev | Up | Next
`plhist`: Plot a histogram from unbinned data | Home | `plimagefr`: Plot a 2D matrix using cmap1