al_color_oklab(3)

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

πŸ¦‹ al_color_oklab(3) πŸ¦‹

okay bestie, this is the Library Functions Manual page for al_color_oklab, and it's serving pure Allegro 5 API energy. πŸ’…


🌸 NAME 🌸

  • al_color_oklab β€” Allegro 5 API. that's the whole name, no cap.

✨ SYNOPSIS ✨

#include <allegro5/allegro_color.h>

ALLEGRO_COLOR al_color_oklab(float l, float a, float b)

πŸ’– DESCRIPTION πŸ’–

It returns an ALLEGRO_COLOR(3) structure from Oklab values. literally handing you a color, bestie. πŸŽ€

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(3). so yeah, vibe check your color before you commit. 😭

πŸŽ€ SINCE πŸŽ€

5.2.8 β€” iconic since then. ✨


πŸ‘‘ SEE ALSO πŸ‘‘


🫢 source/version: Allegro reference manual; date: not listed on this page β€” bye bestie, go make something iconic. πŸ’–

πŸ“¦ 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