al_color_linear_to_rgb(3)

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

NAME

okay bestie, welcome to the al_color_linear_to_rgb(3) page β€” it's from the Library Functions Manual and it's serving pure Allegro 5 API energy πŸŒˆπŸ’…

al_color_linear_to_rgb β€” Allegro 5 API ✨

πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro_color.h>

void al_color_linear_to_rgb(float r, float g, float b,
    float *red, float *green, float *blue)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this one converts linear sRGB color values to gamma corrected (i.e. normal) RGB values β€” it's giving color-space glow-up, no cap πŸ’«

you've got r, g, b in the mix, and the pointer besties *red, *green, *blue are right there in the signature too 🫢

🌸 SINCE 🌸

5.2.8 β€” that's the version where this icon showed up, periodt πŸ’–

⭐ SEE ALSO ⭐

  • al_color_linera(3) β€” yes bestie, that's literally how it's spelled on the page πŸ™ˆ
  • al_color_rgb_to_linear(3) β€” another reference to peek at πŸ‘‘

and that's the whole vibe! source/version: Allegro reference manual; date: the footer doesn't show one, so we're not inventing it, bestie 😭🫢

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