---
name: "al_color_xyy"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_color_xyy/3alleg5"
---

# al\_color\_xyy(3alleg5)

Allegro 5 API

## NAME

al\_color\_xyy - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

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

## SEE ALSO

al\_color\_xyy\_to\_rgb(3alleg5), al\_color\_rgb\_to\_xyy(3alleg5)
