1al_color_hsl(3) al_color_hsl(3)
2
3
4
6 al_color_hsl - Allegro 5 API
7
9 #include <allegro5/allegro_color.h>
10
11 ALLEGRO_COLOR al_color_hsl(float h, float s, float l)
12
14 Return an ALLEGRO_COLOR(3) structure from HSL (hue, saturation, light‐
15 ness) values.
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
26 al_color_hsl_to_rgb(3), al_color_hsv(3)
27
28
29
30Allegro reference manual al_color_hsl(3)