VgaGames 3 - Miscellaneous man-pages

[.. upper level ..]

VG3_color_brightness()

Return the passed color darkened or enlightened.
SYNTAX
int VG3_color_brightness(int color, int percent)

FUNCTION PARAMETERS
color Color from VGAG3_COLORS or VGAG3_COLOR_CUSTOM
percent Percent of the brightness of the color (where 100 = original brightness)

RETURN VALUE
Returns the color darker according to percent.

DESCRIPTION
Return the passed color darkened or enlightened. E.g. if percent is 50, the color returned will be half as bright as normal.