al_is_color_valid(3)

al_is_color_valid3

Allegro 5 api

Usage

#include <allegro5/allegro_color.h>

Overview

Checks if all components of the color are between 0 and 1. Some of the color conversions in this addon support color spaces with more colors than can be represented in sRGB and when converted to RGB will result in invalid color components outside the 0..1 range.

Since

5.2.3

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