From Xojo Documentation

Revision as of 15:29, 7 October 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As Color )
aGraphics.DrawingColor = newColorValue
ColorValue = aGraphics.DrawingColor

New in 2019r2

Supported for all project types and targets.

The currently selected color for the Graphics object. This color is used by the various drawing methods.


This example draws a diagonal line in the current DrawingColor.

g.DrawingColor = &cff0000
g.FillRectangle(10, 10, 100, 100)