Package | com.google.maps.styles |
Class | public class GradientStyle |
Property | Defined by | ||
---|---|---|---|
alphas : Array
An array of type Number, each of which is an alpha value matched with
a corresponding element in the colors Array.
| GradientStyle | ||
colors : Array
An array of type Number, each of which is an RGB color value to be used
in the gradient style (up to 15 elements).
| GradientStyle | ||
focalPointRatio : Number
Gradient focal point ratio.
| GradientStyle | ||
interpolationMethod : String
Gradient interpolation method.
| GradientStyle | ||
matrix : Matrix
Gradient transformation matrix.
| GradientStyle | ||
ratios : Array
Color distribution ratios corresponding to the elements in the colors
Array.
| GradientStyle | ||
spreadMethod : String
Gradient spread method.
| GradientStyle | ||
type : String
A value from the GradientType class that specifies which gradient type
to use: GradientType.LINEAR or GradientType.RADIAL.
| GradientStyle |
Method | Defined by | ||
---|---|---|---|
GradientStyle(params:Object = null)
Constructs a new GradientStyle instance, optionally initializing it from
an object.
| GradientStyle | ||
toString():String
Returns a String representation of this object.
| GradientStyle |
alphas | property |
public var alphas:Array
An array of type Number, each of which is an alpha value matched with a corresponding element in the colors Array.
See also
colors | property |
public var colors:Array
An array of type Number, each of which is an RGB color value to be used in the gradient style (up to 15 elements).
See also
focalPointRatio | property |
public var focalPointRatio:Number
Gradient focal point ratio.
See also
interpolationMethod | property |
public var interpolationMethod:String
Gradient interpolation method.
See also
matrix | property |
public var matrix:Matrix
Gradient transformation matrix.
See also
ratios | property |
public var ratios:Array
Color distribution ratios corresponding to the elements in the colors Array.
See also
spreadMethod | property |
public var spreadMethod:String
Gradient spread method.
See also
type | property |
public var type:String
A value from the GradientType class that specifies which gradient type to use: GradientType.LINEAR or GradientType.RADIAL.
See also
GradientStyle | () | constructor |
public function GradientStyle(params:Object = null)
Constructs a new GradientStyle instance, optionally initializing it from an object.
Parametersparams:Object (default = null ) — An initialization object that contains a set of initial
values for the new GradientStyle object.
|
var mat:Matrix = new Matrix(); mat.createGradientBox(10, 10, 0, 0, 0); var style:GradientStyle = new GradientStyle({ type: GradientType.LINEAR, colors: [0xff0000, 0x00ff00, 0x0000ff], alphas: [0.3, 0.7, 0.5], ratios: [0, 64, 255], matrix: mat, spreadMethod: SpreadMethod.PAD, interpolationMethod: InterpolationMethod.RGB, focalPointRatio: 0.3 });
toString | () | method |
public function toString():String
Returns a String representation of this object.
ReturnsString — String representation of the style.
|