al_color_rgb_to_lch(3alleg5)
π al_color_rgb_to_lch β Allegro 5 API π
okay bestie, welcome to the allegro5 manual, section 3alleg5, and today we're talking about the one and only al_color_rgb_to_lch. it's giving color science, it's giving conversion era, and honestly? she ate. π
β¨ SYNOPSIS β¨
#include <allegro5/allegro_color.h>
void al_color_rgb_to_lch(float red, float green, float blue,
float *l, float *c, float *h)
like yes, that's the whole thing. six floats and a dream. π
πΈ DESCRIPTION πΈ
so basically? this function takes your RGB values and converts them into CIE LCH color space. that's it, that's the vibe. red, green, blue go in, and l, c, and h come back out through the pointers. slay. π
ngl, this is a pointer situation, so make surel,c, andhare actually pointing at realfloats before you call her. no cap. π«Ά
β SINCE β
5.2.3 β she's been iconic since day one, periodt. π
π¦ SEE ALSO π¦
the lch girlies stay connected, iykyk. π
and that's the whole page, bestie!! this lil masterpiece lives in the Allegro reference manual, filed under al_color_rgb_to_lch(3alleg5), and it's been serving since 5.2.3. go convert some colors, you main character. πβ¨ππ¦πΈπ
π¦ 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