al_color_rgb_to_lch(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

✨ 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, the l, c and h params 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