al_color_rgb_to_xyy(3alleg5)
π al_color_rgb_to_xyy(3alleg5) π
okay bestie, so this is a page from the Allegro 5 API β literally the glow-up manual for turning your basic RGB colors into xyY color space energy. no cap, it's a tiny function but it's iconic. π
β¨ SYNOPSIS β¨
#include <allegro5/allegro_color.h>
void al_color_rgb_to_xyy(float red, float green, float blue,
float *x, float *y, float *y2)
likeβ¦ you pull in that header and then you call the function. that's the whole vibe. π
π¦ DESCRIPTION π¦
Convert RGB values to xyY color space. that's it, that's the function, and honestly? it ate. π
you hand it red, green, and blue, and it fills in x, y, and y2 for you β note that the third one is spelled y2 in the signature, so yes, that's really the name, don't come for me. fr fr. π
πΈ SINCE πΈ
5.2.3 β so if you're on anything older, this is not your moment, sorry bestie. π
π SEE ALSO π
al_color_xyy(3alleg5)β the other half of the ship π«Άal_color_xyy_to_rgb(3alleg5)β the way BACK, the reverse glow-up π₯
lowkey reminder: pointers are pointers, so pass real addresses forx,y, andy2or the vibe check fails. π
anyway that's the whole page, mwah. this was the Allegro reference manual's take on al_color_rgb_to_xyy(3alleg5) β go convert some colors, 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