Allegro manual

Introduction

Welcome to Allegro.

API

This is the API chapter.

Color

Something here.

Pixel manipulation

al_map_rgb

ALLEGRO_COLOR al_map_rgb(unsigned char r,
                         unsigned char g,
                         unsigned char b)

Convert r, g, b (ranging from 0-255) into an ALLEGRO_COLOR, using 255 for alpha.

Return value:

Returns the color value.

See also: al_map_rgba.

al_map_rgba

ALLEGRO_COLOR al_map_rgba(unsigned char r,
                          unsigned char g,
                          unsigned char b,
                          unsigned char a)

Convert r, g, b, a (ranging from 0-255) into an ALLEGRO_COLOR.

Return value:

Returns the color value.

See also: al_map_rgb.