Difference between revisions of "Gb.display.setColor"

From Gamebuino Wiki
Jump to: navigation, search
m (Description: grammar)
m (Rodot moved page Gb.setColor to Gb.display.setColor without leaving a redirect: wrong name)
(No difference)

Revision as of 2014-06-24T19:19:46

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