VgaGames4

VgaGames4 - miscellaneous man-pages

[.. upper level ..]

# vg4->misc->colorbrightness()

Change color brightness according to percent-value.

SYNTAX
int vg4->misc->colorbrightness(int color, int percent)
FUNCTION PARAMETERS

color | Color, one of VG_COLORS or from VG_COLOR_RGB()
percent | Percent-value

RETURN VALUE
Returns the changed color
DESCRIPTION
Change color brightness according to percent-value. percent can have values from 0 to VG_MAX_BRIGHTNESS, where 100 returns a color equal to color.