al_color_rgb_to_html - Man Page

Allegro 5 API

Synopsis

#include <allegro5/allegro_color.h>

void al_color_rgb_to_html(float red, float green, float blue,
    char *string)

Description

Create an HTML-style string representation of an ALLEGRO_COLOR(3), e.g. #00faff.

Parameters:

Example:

char html[8];
al_color_rgb_to_html(1, 0, 0, html);

Now html will contain “#ff0000”.

See Also

al_color_html(3), al_color_html_to_rgb(3)

Referenced By

al_color_html(3), al_color_html_to_rgb(3).

Allegro reference manual