al_color_hsl_to_rgb(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– al_color_hsl_to_rgb πŸ’–

okay bestie, listen up β€” this one lives in the Allegro 5 API (that's the 3alleg5 manual, mwah) and it's literally the glow-up machine that turns your HSL vibe into RGB reality. ✨


🌈 SYNOPSIS 🌈

#include <allegro5/allegro_color.h>

void al_color_hsl_to_rgb(float hue, float saturation, float lightness,
   float *red, float *green, float *blue)

πŸŽ€ DESCRIPTION πŸŽ€

So here's the tea: this function converts values in the HSL color model over to the RGB color model. That's it. That's the whole job. And it ate. πŸ’…

Parameters:

  • hue β€” the color hue angle, and it hangs out in the range 0..360. degrees core, no cap. πŸ¦‹
  • saturation β€” the color saturation, range 0..1. keep it in the lines bestie.
  • lightness β€” the color lightness, range 0..1. main character energy only.
  • red, green, blue β€” these are the returned RGB values, each in the range 0..1. yes they're pointers, yes you gotta hand over the addresses, it's giving "output parameters" and honestly iconic. 🫢
fr fr, if you pass a hue outside 0..360 or a saturation/lightness outside 0..1, that's on you β€” this page only promises the documented ranges. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie β€” straight outta the Allegro reference manual for the al_color_hsl_to_rgb(3alleg5) crew. go forth and convert your colors, you absolute legend. β­πŸ’–πŸŽ€

πŸ“¦ where this page comes from