al_color_rgb_to_lch(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 sure l, c, and h are actually pointing at real floats 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