The SpreadMethod class provides values for the spreadMethod parameter in the beginGradientFill() and lineGradientStyle() methods of the Graphics class.

The following example shows the same gradient fill using various spread methods:

Variables

@:value(cast "pad")@:enum@:implinlineread onlyPAD:SpreadMethod = "pad"

Specifies that the gradient use the pad spread method.

@:value(cast "reflect")@:enum@:implinlineread onlyREFLECT:SpreadMethod = "reflect"

Specifies that the gradient use the reflect spread method.

@:value(cast "repeat")@:enum@:implinlineread onlyREPEAT:SpreadMethod = "repeat"

Specifies that the gradient use the repeat spread method.