ClanSoft logo
ClanSoft logo

    CL_Color::get_color

Syntax

static unsigned int get_color(
        unsigned int rmask,
        unsigned int gmask,
        unsigned int bmask,
        unsigned int amask,
        int r,
        int g,
        int b,
        int a=255);

Parameters

rmask-the bit mask for red
gmask-the bit mask for green
bmask-the bit mask for blue
amask-the bit mask for the alpha
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 (default is opaque)

Return value

the color value in the format you specify

Description

Returns the color value in a format you specifyby giving the red, green, blue and alphamasks, along with the corresponding red, blue,green and alpha values.


Back to index



This page was built using the Perceps documentation system.