al_map_rgb(3)

al_map_rgb3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
ALLEGRO_COLOR al_map_rgb(
   unsigned char r, unsigned char g, unsigned char b)

Overview

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

This function can be called before Allegro is initialized.

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.