gb.display.setColor

From Gamebuino Wiki
Revision as of 2014-09-07T12:45:51 by Rodot (talk | contribs) (INVERT color added)
Jump to: navigation, search

Description

Changes the color used to draw on the screen by all the display functions.

The colors can be either WHITE, BLACK or INVERT.

Most of the display functions only have one color, the foreground color. But some functions also have a background color:

Syntax

gb.display.setColor(foregroundColor, backgroundColor);

Parameters

  • foregroundColor : WHITE, BLACK or INVERT
  • backgroundColor (optional) : WHITE, BLACK or INVERT. If no background color is specified, the background is transparent.

Returns

none

Example

See also