Packagefrocessing.core.canvas
Classpublic class CanvasNormalGradientStroke
InheritanceCanvasNormalGradientStroke Inheritance FNormalGradient Inheritance FGradient Inheritance Object
Implements ICanvasStroke, ICanvasStrokeFill

グラデーションの線描画を定義します.



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


Implementation
    public function get stroke():CanvasStroke
    public function set stroke(value:CanvasStroke):void
Constructor Detail
CanvasNormalGradientStroke()Constructor
public function CanvasNormalGradientStroke(stroke:CanvasStroke, isNormal:Boolean, type:String, colors:Array, alphas:Array, ratios:Array, matrix:Matrix = null, spreadMethod:String = pad, interpolationMethod:String = rgb, focalPointRatio:Number = 0.0)



Parameters
stroke:CanvasStroke
 
isNormal: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
apply()method
public function apply(g:CanvasStyleAdapter):void

Parameters

g:CanvasStyleAdapter

clone()method 
public function clone():ICanvasStroke

Returns
ICanvasStroke