al_color_oklab(3alleg5)

al_color_oklab3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro_color.h>
ALLEGRO_COLOR al_color_oklab(float l, float a, float b)

Overview

Return an ALLEGRO_COLOR(3alleg5) structure from Oklab values. The L component corresponds to luminance from 0..1. The a and b components are in the range -1..+1.

Note:

The Oklab color space can represent more colors than are visible in sRGB and therefore conversion may result in RGB values outside of the 0..1 range. You can check for that case with al_is_color_valid(3alleg5).

Since

5.2.8

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

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