Package | flash.display |
Class | public final class SpreadMethod |
Inheritance | SpreadMethod Object |
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 1.0, Flash Player 9 |
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
|
Related API Elements
Public Properties
Public Methods
Public Constants
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 |
Constant Detail
PAD | Constant |
public static const PAD:String = "pad"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 1.0, Flash Player 9 |
Specifies that the gradient use the pad spread method.
REFLECT | Constant |
public static const REFLECT:String = "reflect"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 1.0, Flash Player 9 |
Specifies that the gradient use the reflect spread method.
REPEAT | Constant |
public static const REPEAT:String = "repeat"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 1.0, Flash Player 9 |
Specifies that the gradient use the repeat spread method.
Thu Dec 6 2018, 01:12 PM -08:00