Graphics.ForeColor

From Xojo Documentation

Property (As Color )
aGraphics.ForeColor = newColorValue
or
ColorValue = aGraphics.ForeColor

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 ForeColor.

g.ForeColor = &cff0000
g.FillRect(10, 10, 100, 100)