PixelDisplay.color

From MiniScript Wiki
Revision as of 07:13, 1 March 2024 by Marc Gurevitx (talk | contribs) (merging example from PixelDipslay.color)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The color property of the PixelDisplay class sets the default drawing color for subsequent drawing calls such as PixelDisplay.line, PixelDisplay.drawRect, and PixelDisplay.fillPoly.

The default value is "#FFFFFFFF", or solid white.

Example

gfx.color = color.green
gfx.fillRect 50,100, 200,200