Graphics.DrawingColor

From Xojo Documentation

Property (As Color )
aGraphics.DrawingColor = newColorValue
or
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.

Example

This example draws a diagonal line in the current DrawingColor.

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