| Package | flash.display |
| Class | public final class SpreadMethod |
| Inheritance | SpreadMethod Object |
spreadMethod parameter
in the beginGradientFill() and lineGradientStyle() methods of the Graphics class.
The following example shows the same gradient fill using various spread methods:
![]() | ![]() | ![]() |
SpreadMethod.PAD | SpreadMethod.REFLECT | SpreadMethod.REPEAT |
See also
| Constant | Defined By | ||
|---|---|---|---|
| PAD : String = "pad" [static]
Specifies that the gradient use the pad spread method.
| SpreadMethod | ||
| REFLECT : String = "reflect" [static]
Specifies that the gradient use the reflect spread method.
| SpreadMethod | ||
| REPEAT : String = "repeat" [static]
Specifies that the gradient use the repeat spread method.
| SpreadMethod | ||
| PAD | Constant |
public static const PAD:String = "pad"
Specifies that the gradient use the pad spread method.
| REFLECT | Constant |
public static const REFLECT:String = "reflect"
Specifies that the gradient use the reflect spread method.
| REPEAT | Constant |
public static const REPEAT:String = "repeat"
Specifies that the gradient use the repeat spread method.