From Xojo Documentation

Revision as of 17:57, 4 June 2019 by Gperlman (talk | contribs)

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)