1al_color_html(3)                                              al_color_html(3)
2
3
4

NAME

6       al_color_html - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_color.h>
10
11              ALLEGRO_COLOR al_color_html(char const *string)
12

DESCRIPTION

14       Interprets  an  HTML-style  hex number (e.g.  #00faff) as a color.  The
15       accepted 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

SEE ALSO

24       al_color_html_to_rgb(3), al_color_rgb_to_html(3)
25
26
27
28Allegro reference manual                                      al_color_html(3)
Impressum