DOKK / manpages / debian 12 / allegro5-doc / al_color_rgb_to_linear.3alleg5.en
al_color_rgb_to_linear(3alleg5) al_color_rgb_to_linear(3alleg5)

al_color_rgb_to_linear - Allegro 5 API

#include <allegro5/allegro_color.h>
void al_color_rgb_to_linear(float red, float green, float blue,

float *r, float *g, float *b)

Convert gamma corrected sRGB values (i.e. normal RGB) to linear sRGB space.

5.2.8

al_color_linear(3alleg5), al_color_linear_to_rgb(3alleg5)

Allegro reference manual