enum openfl.display.SpreadMethod

Available on all platforms

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:

Constructors

REPEAT

Specifies that the gradient use the repeat spread method.

REFLECT

Specifies that the gradient use the reflect spread method.

PAD

Specifies that the gradient use the pad spread method.