al_color_xyy(3)

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

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


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