Packagefrocessing.core.graphics
Classpublic class FNormalGradient
InheritanceFNormalGradient Inheritance FGradient Inheritance Object
Subclasses CanvasNormalGradientFill, CanvasNormalGradientStroke, FShapeGradient

グラデーションを定義します. Matrixはノーマライズされた値を指定します。 実際適用されるMatrixは、(left,top,width,height)にマッピングされます.



Public Properties
 PropertyDefined By
 Inheritedalphas : Array
FGradient
 Inheritedcolors : Array
FGradient
 InheritedfocalPointRatio : Number
FGradient
 InheritedinterpolationMethod : String
FGradient
  isNormal : Boolean
true の場合、実際適用されるMatrixは、(left,top,width,height)にマッピングされます.
FNormalGradient
  mappedMatrix : Matrix
[read-only]
FNormalGradient
 Inheritedmatrix : Matrix
FGradient
 Inheritedratios : Array
FGradient
 InheritedspreadMethod : String
FGradient
 Inheritedtype : String
FGradient
Public Methods
 MethodDefined By
  
FNormalGradient(normal:Boolean, type:String, colors:Array, alphas:Array, ratios:Array, matrix:Matrix = null, spreadMethod:String = pad, interpolationMethod:String = rgb, focalPointRatio:Number = 0.0)
FNormalGradient
  
setRect(left:Number, top:Number, width:Number, height:Number):void
FNormalGradient
Property Detail
isNormalproperty
public var isNormal:Boolean

true の場合、実際適用されるMatrixは、(left,top,width,height)にマッピングされます.

mappedMatrixproperty 
mappedMatrix:Matrix  [read-only]


Implementation
    public function get mappedMatrix():Matrix
Constructor Detail
FNormalGradient()Constructor
public function FNormalGradient(normal:Boolean, type:String, colors:Array, alphas:Array, ratios:Array, matrix:Matrix = null, spreadMethod:String = pad, interpolationMethod:String = rgb, focalPointRatio:Number = 0.0)

Parameters
normal:Boolean
 
type:String
 
colors:Array
 
alphas:Array
 
ratios:Array
 
matrix:Matrix (default = null)
 
spreadMethod:String (default = pad)
 
interpolationMethod:String (default = rgb)
 
focalPointRatio:Number (default = 0.0)
Method Detail
setRect()method
public function setRect(left:Number, top:Number, width:Number, height:Number):void

Parameters

left:Number
 
top:Number
 
width:Number
 
height:Number