table of contents
other versions
- bookworm 2:5.2.8.0+dfsg-1
- testing 2:5.2.9.1+dfsg-1
- unstable 2:5.2.9.1+dfsg-1.1
- experimental 2:5.2.9.1+dfsg-1.1~exp2
al_color_html(3alleg5) | al_color_html(3alleg5) |
NAME¶
al_color_html - Allegro 5 API
SYNOPSIS¶
-
#include <allegro5/allegro_color.h> ALLEGRO_COLOR al_color_html(char const *string)
DESCRIPTION¶
Interprets an HTML-style hex number (e.g. #00faff) as a color. The accepted format is the same as al_color_html_to_rgb(3alleg5).
Returns the interpreted color, or al_map_rgba(0, 0, 0, 0) if the string could not be parsed.
Note: the behaviour on invalid strings is different from Allegro 5.0.x.
SEE ALSO¶
al_color_html_to_rgb(3alleg5), al_color_rgb_to_html(3alleg5)
Allegro reference manual |