al_color_rgb_to_xyy(3alleg5)

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

πŸ’– 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 🌟


lowkey reminder: pointers are pointers, so pass real addresses for x, y, and y2 or 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