gb.display.setColor

From Gamebuino Wiki
Revision as of 2014-06-24T18:46:42 by Rodot (talk | contribs) (Created page with "{{lowercase}} __NOTOC__ == Description == Changes the color used to draw on the screen by all the display function. The colors can be either <code>WHITE</code> or <code>BLACK...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

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

The colors can be either WHITE or BLACK (actually these are just constants respectively equals to 0 and 1).

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

To have a transparent background, set the background the same color as the foreground.

Syntax

gb.setColor(foregroundColor, backgroundColor);

Parameters

  • foregroundColor
  • backgroundColor (optional)

Returns

none

Example

See also