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