al_color_hsl(3alleg5)

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

πŸ’– al_color_hsl β€” Allegro 5 API πŸ’–

okay bestie, welcome to the al_color_hsl page from the allegro5 manual ✨ this one's a lil cutie, she just makes colors for you, no cap πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_color.h>

ALLEGRO_COLOR al_color_hsl(float h, float s, float l)

✨ DESCRIPTION ✨

So basically, this function hands you back an ALLEGRO_COLOR(3alleg5) struct, built from HSL values β€” that's hue, saturation, and lightness, iykyk πŸ’…

Here are the parameters, and yes I'm listing every single one, we do not skip 🫢

  • hue β€” the color hue angle, and it lives in the range 0..360 🌈
  • saturation β€” the color saturation, and she's in the range 0..1 πŸ“
  • lightness β€” the color lightness, also chillin in the range 0..1 πŸ¦‹
not me reminding you that hue is an angle and saturation + lightness are 0 to 1 β€” pls respect the ranges bestie, they are not vibing outside those numbers πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

  • al_color_hsl_to_rgb(3alleg5)
  • al_color_hsv(3alleg5)

and that's the whole page, main character energy only πŸ’œ this was the Allegro reference manual, al_color_hsl(3alleg5) β€” go forth and make pretty colors, periodt βœ¨πŸŽ€πŸ’–

πŸ“¦ where this page comes from