PLRGBHLS(3plplot)

πŸ’… PLRGBHLS πŸ’…

okay so this is a page from the PLplot API manual, and the star of the show is PLRGBHLS(3plplot) β€” say hi πŸ‘‹


✨ NAME ✨

plrgbhls β€” convert RGB color to HLS, bestie. that's it, that's the whole vibe. 🌈


✨ SYNOPSIS ✨

plrgbhls(r, g, b, p_h, p_l, p_s)

✨ DESCRIPTION ✨

so basically it takes RGB color coordinates and converts them to HLS. literally just a glow-up from one color space to another, no cap. πŸ‘‘

Redacted form, for the record: General: plrgbhls(r, g, b, p_h, p_l, p_s)

and fun fact β€” this function is used in example 2. iconic behavior honestly. ⭐


✨ ARGUMENTS ✨

  • r (PLFLT(3plplot), input) β€” the red intensity of the color, 0.0-1.0. πŸ“
  • g (PLFLT(3plplot), input) β€” the green intensity of the color, 0.0-1.0. 🧚
  • b (PLFLT(3plplot), input) β€” the blue intensity of the color, 0.0-1.0. πŸ¦‹
  • p_h (PLFLT_NC_SCALAR(3plplot), output) β€” the returned value of the hue, in degrees (0.0-360.0), on the color cylinder. 🎑
  • p_l (PLFLT_NC_SCALAR(3plplot), output) β€” the returned value of the lightness, expressed as a fraction (0.0-1.0) of the axis of the color cylinder. πŸ’‘
  • p_s (PLFLT_NC_SCALAR(3plplot), output) β€” the returned value of the saturation, expressed as a fraction (0.0-1.0) of the radius of the color cylinder. πŸ’–

like yes, the color cylinder is a real thing and yes it ate. 🫢


πŸ‘‘ AUTHORS πŸ‘‘

Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. shoutout to the whole squad, fr fr. 😭


πŸ”₯ SEE ALSO πŸ”₯

PLplot documentation at http://plplot.sourceforge.net/documentation.php. go read it, iykyk. πŸ“š


lowkey important: p_h, p_l, and p_s are outputs, so don't come in expecting to feed them values β€” the function hands them back to you. mind the PLFLT_NC_SCALAR types, bestie. πŸ’…

okay that's the whole page!! πŸ’œ this cutie was served up as part of the PLplot API, dated August, 2026 β€” periodt. 🌸

πŸ“¦ where this page comes from