1al_color_hsl_to_rgb(3) al_color_hsl_to_rgb(3)
2
3
4
6 al_color_hsl_to_rgb - Allegro 5 API
7
9 #include <allegro5/allegro_color.h>
10
11 void al_color_hsl_to_rgb(float hue, float saturation, float lightness,
12 float *red, float *green, float *blue)
13
15 Convert values in HSL color model to RGB color model.
16
17 Parameters:
18
19 · hue - Color hue angle in the range 0..360
20
21 · saturation - Color saturation in the range 0..1
22
23 · lightness - Color lightness in the range 0..1
24
25 · red, green, blue - returned RGB values in the range 0..1
26
28 al_color_rgb_to_hsl(3), al_color_hsl(3), al_color_hsv_to_rgb(3)
29
30
31
32Allegro reference manual al_color_hsl_to_rgb(3)