al_color_xyy(3alleg5)

al_color_xyy3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro_color.h>
ALLEGRO_COLOR al_color_xyy(float x, float y, float y2)

Overview

Return an ALLEGRO_COLOR(3alleg5) structure from xyY values. The Y component in the xyY color space is the same as the Y in XYZ.

However the x and y values are computed from XYZ like this:

x = X / (X + Y + Z)
y = Y / (X + Y + Z)

Since

5.2.3

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.