ClanSoft logo
ClanSoft logo

    CL_Color::get_color

Syntax

static unsigned int get_color(
        EPixelFormat fmt,
        int r,
        int g,
        int b,
        int a=255);

Parameters

fmt-the pixel format to use
r-the red value as an integer
g-the green value as an integer
b-the blue value as an integer
a-the alpha value as an integer(defaults to opaque)

Return value

the color value in the requested pixel format

Description

Converts separate red, blue, green and alpha integer values into a color value


Back to index



This page was built using the Perceps documentation system.