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, andp_sare outputs, so don't come in expecting to feed them values β the function hands them back to you. mind thePLFLT_NC_SCALARtypes, 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
- ubuntu stonking: plplot-doc 5.15.0+dfsg3-4 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms