WebGraphics.ForeColor

From Xojo Documentation

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

Supported for all project types and targets.

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

Example

This example draws a red rectangle:

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