VgaGames 3 - Video man-pages

[.. upper level ..]

VG3_draw_colorchange()

Replace all pixels of one color with pixels of another color.
SYNTAX
void VG3_draw_colorchange(struct vg3_window *wstruct, struct vg3_image *imgdst, int fromcolor, int tocolor)

FUNCTION PARAMETERS
wstruct Window-struct
imgdst Image, or NULL = window
fromcolor Source color (from VGAG3_COLORS or VGAG3_COLOR_CUSTOM)
tocolor Destination color (from VGAG3_COLORS or VGAG3_COLOR_CUSTOM)

DESCRIPTION
Replace all pixels of one color with pixels of another color.

SEE ALSO
VG3_draw_clear() VG3_draw_point() VG3_draw_line() VG3_draw_rect() VG3_draw_text() VG3_draw_colorize()