1al_color_html(3) al_color_html(3)
2
3
4
6 al_color_html - Allegro 5 API
7
9 #include <allegro5/allegro_color.h>
10
11 ALLEGRO_COLOR al_color_html(char const *string)
12
14 Interprets an HTML-style hex number (e.g. #00faff) as a color. The ac‐
15 cepted format is the same as al_color_html_to_rgb(3).
16
17 Returns the interpreted color, or al_map_rgba(0, 0, 0, 0) if the string
18 could not be parsed.
19
20 Note: the behaviour on invalid strings is different from Allegro
21 5.0.x.
22
24 al_color_html_to_rgb(3), al_color_rgb_to_html(3)
25
26
27
28Allegro reference manual al_color_html(3)