1al_color_rgb_to_html(3)                                al_color_rgb_to_html(3)
2
3
4

NAME

6       al_color_rgb_to_html - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_color.h>
10
11              void al_color_rgb_to_html(float red, float green, float blue,
12                  char *string)
13

DESCRIPTION

15       Create  an  HTML-style  string  representation  of an ALLEGRO_COLOR(3),
16       e.g. #00faff.
17
18       Parameters:
19
20       • red, green, blue - The color components in the range 0..1.
21
22       • string - A pointer to a buffer of at least 8 bytes,  into  which  the
23         result will be written (including the NUL terminator).
24
25       Example:
26
27              char html[8];
28              al_color_rgb_to_html(1, 0, 0, html);
29
30       Now html will contain “#ff0000”.
31

SEE ALSO

33       al_color_html(3), al_color_html_to_rgb(3)
34
35
36
37Allegro reference manual                               al_color_rgb_to_html(3)
Impressum