al_color_rgb_to_lch(3)
β¨ al_color_rgb_to_lch β Allegro 5 API β¨
Okay bestie, so this one is from the Allegro 5 API reference manual and it's literally the cutest little color converter you ever did see π
π 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, that's it. That's the whole signature. Slay π
π DESCRIPTION π
So what it does is it converts your RGB values over into CIE LCH color space, no cap. You hand it red, green and blue, and it goes and fills in l, c and h for you through those pointers. It's giving color-space glow-up β¨
π¦ SINCE π¦
5.2.3 β she's been around for a minute, respect the icon π
πΈ SEE ALSO πΈ
iykyk, the whole color squad π«Ά
ngl bestie, thel,candhparams are pointers, so don't forget to pass addresses or nothing's getting written. main character energy means being careful with your pointers π
β¨ Allegro reference manual β¨ β that's the Allegro reference manual, the Library Functions Manual edition, brought to you by the fine folks and their version and date shenanigans. Literally iconic, periodt ππ
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms