VgaGames 3 - Miscellaneous man-pages

[.. upper level ..]

VG3_colordef_colorize_to()

[added in version 1.2]

Return a window-attributes setting value for colorizing the window.
SYNTAX
int VG3_colordef_colorize_to(const char *colorname, int depth, int overbright)

FUNCTION PARAMETERS
colorname A selection of RED, GREEN, BLUE, YELLOW, VIOLET, TURQUOISE, WHITE
depth Colordepth: from 0 to 23
overbright Brightness-overdriving: from 0 to 23

RETURN VALUE
Returns the corresponding color definition value from VGAG3_COLORDEFS.

DESCRIPTION
Return a value for the colordef function parameter of VG3_window_attributes(), for colorizing the window with a color of colorname and a colordepth of depth and a brightness-overdriving of overbright. The colorname=WHITE will not colorize but only increase the brightness of the window. With VG3_draw_colorize() this value can be used also for an image.

SEE ALSO
VG3_colordef_colorize_from() VG3_window_attributes() VG3_draw_colorize()