PLHLSRGB(3plplot)
π PLHLSRGB β the PLplot glow-up page π
okay so bestie, welcome to <pink>plhlsrgb</pink> from the PLplot API</> (that's the 3plplot manual, mwah). This is the little icon that takes your HLS color vibes and translates them into RGB so your screen can actually see them. color math but make it cute β¨
β¨ NAME β¨
plhlsrgb β Convert HLS color to RGB π
like literally, that's the whole job. hue/lightness/saturation in, red/green/blue out. no cap.
πΈ SYNOPSIS πΈ
plhlsrgb(h, l, s, p_r, p_g, p_b)
six args, one function, zero drama π«Ά
π¦ DESCRIPTION π¦
Convert HLS color coordinates to RGB.
that's it, that's the plot (pun intended π). you hand it a color in HLS, it hands you back the same color in RGB.
Redacted form: General: plhlsrgb(h, l, s, p_r, p_g, p_b)
alsooo, if you're the kind of person who learns by example (same, honestly), this function is used in example 2. so go peek at that if you want to see it living its best life in actual code π
π ARGUMENTS π
h(PLFLT(3plplot), input) β the hue, in degrees (0.0-360.0), measured around the color cylinder. think of it as where you are on the ring πl(PLFLT(3plplot), input) β the lightness, expressed as a fraction (0.0-1.0) of the axis of the color cylinder. i.e. how far up the stick you climb π«s(PLFLT(3plplot), input) β the saturation, expressed as a fraction (0.0-1.0) of the radius of the color cylinder. how far out from the middle you're living, main character energy πp_r(PLFLT_NC_SCALAR(3plplot), output) β the returned value of the red intensity (0.0-1.0) of the color. this one gets written to, so don't come crying if your variable changes πp_g(PLFLT_NC_SCALAR(3plplot), output) β the returned value of the green intensity (0.0-1.0) of the color. also output, also writes into your variable πp_b(PLFLT_NC_SCALAR(3plplot), output) β the returned value of the blue intensity (0.0-1.0) of the color. third output, third variable, we love a trio π
quick vibe check: the last three are output params β they're the function handing you the answer, not you handing it the question. don't mix that up or the color wheel will simply not slay π
π AUTHORS π
Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history.
genuinely iconic behavior from a whole crowd of people, tbh. legends only ππ«Ά
β SEE ALSO β
PLplot documentation at http://plplot.sourceforge.net/documentation.php. go read it, it's giving everything πβ¨
that's the whole page bestie, hope your colors are immaculate π¦π
sign-off szn: this was the PLplot API page, dated August, 2026, and if you ever forget the name it's <rainbow>PLHLSRGB(3plplot)</rainbow> β 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