Packageorg.openPyro.painters
Classpublic class Stroke

Defines a stroke that can be applied to a Graphics context or be used by one of the painters



Public Properties
 PropertyDefined by
  alpha : Number = 1.0
Stroke
  caps : String = "null"
Stroke
  color : uint = 0
Stroke
  joints : String = "null"
Stroke
  miterLimit : Number = 3
Stroke
  pixelHinting : Boolean = false
Stroke
  scaleMode : String = "normal"
Stroke
  thickness : Number = NaN
Stroke
Public Methods
 MethodDefined by
  
Stroke(thickness:Number = 1, color:uint = 0x000000, alpha:Number = 1, pixelHinting:Boolean = false)
Stroke
  
apply(gr:Graphics):void
Applies the Stroke to a Graphics context
Stroke
Property detail
alphaproperty
public var alpha:Number = 1.0
capsproperty 
public var caps:String = "null"
colorproperty 
public var color:uint = 0
jointsproperty 
public var joints:String = "null"
miterLimitproperty 
public var miterLimit:Number = 3
pixelHintingproperty 
public var pixelHinting:Boolean = false
scaleModeproperty 
public var scaleMode:String = "normal"
thicknessproperty 
public var thickness:Number = NaN
Constructor detail
Stroke()constructor
public function Stroke(thickness:Number = 1, color:uint = 0x000000, alpha:Number = 1, pixelHinting:Boolean = false)Parameters
thickness:Number (default = 1)
 
color:uint (default = 0x000000)
 
alpha:Number (default = 1)
 
pixelHinting:Boolean (default = false)
Method detail
apply()method
public function apply(gr:Graphics):void

Applies the Stroke to a Graphics context

Parameters
gr:Graphics