al_color_xyy(3)
π NAME π
Okay so this is the tea on al_color_xyy β it's part of the Allegro 5 API, and we're reading the al_color_xyy(3) page from the Allegro reference manual (Library Functions Manual vibes, iykyk) π«Ά. It's the function that hands you an ALLEGRO_COLOR(3) structure from xyY values, and bestie, the Y in xyY is literally the same Y as in XYZ β no cap.
π SYNOPSIS π
#include <allegro5/allegro_color.h>
ALLEGRO_COLOR al_color_xyy(float x, float y, float y2)
β¨ DESCRIPTION β¨
So al_color_xyy returns an ALLEGRO_COLOR(3) structure from xyY values. The Y component in the xyY color space is the same as the Y in XYZ. Periodt π
.
However, the x and y values are computed from XYZ like this, bestie:
x = X / (X + Y + Z)
y = Y / (X + Y + Z)
πΈ SINCE πΈ
This iconic behavior has been around since 5.2.3 β¨.
π¦ SEE ALSO π¦
al_color_xyy_to_rgb(3)β another icon you should check out πal_color_rgb_to_xyy(3)β and this one too, fr fr π
byeee π this was al_color_xyy(3) from the Allegro reference manual β no date on this footer, just the manual name and the page, so that's the whole cute sign-off πβ¨
π¦ 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