wml::sup::hextriple(3)

πŸ“¦
version 2.32.0 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing

πŸ’– wml::sup::hextriple πŸ’–

okay so bestie, welcome to wml::sup::hextriple β€” it's a lil EN Tools manual page (section 3, library functions, iykyk) and it does exactly one iconic thing: Convert #rrggbb String to RGB Value and vice versa. that's the whole vibe. periodt. πŸ’…


✨ SYNOPSIS ✨

#use wml::sup::hextriple

<: ($r, $g, $b) = &triple2rgb($triple); :>
<: $triple = &rgb2triple($r, $g, $b); :>

like, you pull it in with that #use line and then you've got two functions doing the flippy thing in both directions πŸ¦‹


🌸 DESCRIPTION 🌸

so here's the tea: this module converts between the string "RRGGBB" or "#RRGGBB" and the corresponding hextriple β€” which is just the value for red, green and blue all hanging out together. going one way, going the other way, it's giving bidirectional ✨


πŸ‘‘ AUTHOR πŸ‘‘

  • Ralf S. Engelschall
  • rse@engelschall.com
  • www.engelschall.com

no cap, that's the legend right there πŸ’œ


πŸŽ€ REQUIRES πŸŽ€

  • Internal: P1, P3
  • External: --

(yeah the external list is literally empty, we love a low-maintenance queen 🫢)


πŸ”₯ SEE ALSO πŸ”₯

  • HTML color attributes.

πŸ’€ reminder bestie: every option, path, value and default up there is straight from the original β€” I didn't touch a single character of the actual technical stuff, I just gave it main character energy. facts stay facts, vibe stays immaculate. πŸ’…

okay that's a wrap!! this lil page came to you from EN Tools, dated 2020-11-29, and it's filed under wml::sup::hextriple(3). slay, ate, no crumbs. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from