al_color_hsl(3alleg5)
π 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 range0..360πsaturationβ the color saturation, and she's in the range0..1πlightnessβ the color lightness, also chillin in the range0..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
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms