Index

Package: Truecolor

Description

package Allegro.Truecolor is
Allegro 4.4.2 - Truecolor pixel formats

Types

Color_Type

type Color_Type is new Unsigned_32;

Subprograms & Entries

GetR

function GetR
( color: Color_Type ) return Natural;

GetG

function GetG
( color: Color_Type ) return Natural;

GetB

function GetB
( color: Color_Type ) return Natural;

GetA

function GetA
( color: Color_Type ) return Natural;

GetR8

function GetR8
( color: Color_Type ) return Natural;

GetG8

function GetG8
( color: Color_Type ) return Natural;

GetB8

function GetB8
( color: Color_Type ) return Natural;

GetR15

function GetR15
( color: Color_Type ) return Natural;

GetG15

function GetG15
( color: Color_Type ) return Natural;

GetB15

function GetB15
( color: Color_Type ) return Natural;

GetR16

function GetR16
( color: Color_Type ) return Natural;

GetG16

function GetG16
( color: Color_Type ) return Natural;

GetB16

function GetB16
( color: Color_Type ) return Natural;

GetR24

function GetR24
( color: Color_Type ) return Natural;

GetG24

function GetG24
( color: Color_Type ) return Natural;

GetB24

function GetB24
( color: Color_Type ) return Natural;

GetR32

function GetR32
( color: Color_Type ) return Natural;

GetG32

function GetG32
( color: Color_Type ) return Natural;

GetB32

function GetB32
( color: Color_Type ) return Natural;

GetA32

function GetA32
( color: Color_Type ) return Natural;

GetR_Depth

function GetR_Depth
( color_depth: Natural;
color: Color_Type ) return Natural;

GetG_Depth

function GetG_Depth
( color_depth: Natural;
color: Color_Type ) return Natural;

GetB_Depth

function GetB_Depth
( color_depth: Natural;
color: Color_Type ) return Natural;

GetA_Depth

function GetA_Depth
( color_depth: Natural;
color: Color_Type ) return Natural;

Makecol

function Makecol
( r, g, b: Natural ) return Color_Type;

Makecol8

function Makecol8
( r, g, b: Natural ) return Color_Type;

Makecol15

function Makecol15
( r, g, b: Natural ) return Color_Type;

Makecol16

function Makecol16
( r, g, b: Natural ) return Color_Type;

Makecol24

function Makecol24
( r, g, b: Natural ) return Color_Type;

Makecol32

function Makecol32
( r, g, b: Natural ) return Color_Type;

Makecol15_Dither

function Makecol15_Dither
( r, g, b, x, y: Integer ) return Color_Type;

Makecol16_Dither

function Makecol16_Dither
( r, g, b, x, y: Integer ) return Color_Type;

Makeacol

function Makeacol
( r, g, b, a: Natural ) return Color_Type;

Makeacol32

function Makeacol32
( r, g, b, a: Natural ) return Color_Type;

Makecol_Depth

function Makecol_Depth
( color_depth, r, g, b: Natural ) return Color_Type;

Makeacol_Depth

function Makeacol_Depth
( color_depth, r, g, b, a: Natural ) return Color_Type;

Compare

function Compare
( a, b: Color_Type;
tolerance: Natural := 0 ) return Boolean;
Returns True if the colors compare within tolerance bounds. If any of the components of the colors differ by more than 'tolerance', the comparison will fail

Contrast

function Contrast
( fg, bg: Color_Type;
ratio: Float := 1.75 ) return Color_Type;
Returns the foreground color adjusted for contrast against the background.

Hard_Contrast

function Hard_Contrast
( bg: Color_Type ) return Color_Type;
Returns white or black, depending on the brightness of the background.

Lighten

function Lighten
( color: Color_Type;
factor: Float ) return Color_Type;
Returns a color which is lighter or darker than the input. The color will be darker where 0 < factor < 1 and lighter where factor > 1.

Make_Grey

function Make_Grey
( brightness: Natural ) return Color_Type;

Palette_Color

function Palette_Color
( index: Palette_Index ) return Color_Type;