Packagepegas.draw
Classpublic final class FillStyle
InheritanceFillStyle Inheritance CoreObject
ImplementsIFillStyle

Defines the fill style of the vector shapes. See the flash.display.graphics.beginFill method.



Public Properties
 PropertyDefined by
  alpha : Number
The alpha value of the fill style.
FillStyle
  color : uint
The color value of the fill style.
FillStyle
  EMPTY : FillStyle
[static] The empty FillStyle singleton.
FillStyle
Public Methods
 MethodDefined by
  
FillStyle(color:uint, alpha:Number = 1.0)
Creates a new FillStyle instance.
FillStyle
 Inherited
Returns the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
hashCode():uint
Returns a hashcode value for the object.
CoreObject
  
init(graphic:Graphics):void
Initialize and launch the beginFill method of the specified Graphics reference.
FillStyle
 Inherited
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
CoreObject
 Inherited
toString():String
Returns the string representation of this instance.
CoreObject
Property detail
alphaproperty
public var alpha:Number

The alpha value of the fill style.

colorproperty 
public var color:uint

The color value of the fill style.

EMPTYproperty 
public static var EMPTY:FillStyle

The empty FillStyle singleton.

Constructor detail
FillStyle()constructor
public function FillStyle(color:uint, alpha:Number = 1.0)

Creates a new FillStyle instance.

Parameters
color:uint — The color value of the fill style.
 
alpha:Number (default = 1.0) — The alpha value of the fill style.
Method detail
init()method
public function init(graphic:Graphics):void

Initialize and launch the beginFill method of the specified Graphics reference.

Parameters
graphic:Graphics