al_color_hsv(3alleg5)
β¨ al_color_hsv β Allegro 5 API β¨
okay bestie, welcome to al_color_hsv(3alleg5), straight out of the Allegro 5 API manual π this one is short and sweet and it's literally just "give me a colour, but make it HSV." no cap.
π SYNOPSIS π
#include <allegro5/allegro_color.h>
ALLEGRO_COLOR al_color_hsv(float h, float s, float v)
π DESCRIPTION π
So like, this function hands you back an ALLEGRO_COLOR(3alleg5) struct, and it builds it from HSV values β that's hue, saturation, and value. Iconic trio, honestly. The way that hue/sat/value just work together? Obsessed. π¦
Here's the rundown on the params, bestie:
- hue β the colour's hue angle, and it lives in the range
0..360. think of it like spinning around a colour wheel, one full rotation and you're back where you started π‘ - saturation β how saturated the colour is, in the range
0..1. lowkey washed out at0, fully poppin' at1π - value β the colour's value, in the range
0..1. this is the brightness dial, and yes it goes all the way down to0πΈ
fr fr, mind those ranges. hue is degrees (0..360) but saturation and value are the lil0..1float babies β do not mix them up, i'm begging π
π SEE ALSO π
and that's the whole page, bestie, we ate and left no crumbs π«Ά Allegro reference manual, al_color_hsv(3alleg5) β mwah, catch u in the next manpage πβ¨π
π¦ 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