gb.display.setColor

From Gamebuino Wiki
Revision as of 2014-06-24T18:47:32 by Rodot (talk | contribs) (Description: grammar)
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 or BLACK (actually these are just constants respectively equal 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