Packagegraphics.filters
Classpublic class CircleSpectrumFilter
InheritanceCircleSpectrumFilter Inheritance ShaderCustomFilter Inheritance flash.filters.ShaderFilter

The CircleSpectrumFilter class maps a color spectrum to a circle area. The Shader must be defines with the CircleSpectrum pixelbender implementation.



Public Properties
 PropertyDefined By
  center : Point
The center position of the circle (between {0,0} and {2800,2800}, default {100,100}).
CircleSpectrumFilter
 Inheriteddescription : String
[read-only] The description of the filter (defines in the Shader).
ShaderCustomFilter
  innerRadius : Number
The inner radius of the circle (between 0 and 2800 px, default 100 px).
CircleSpectrumFilter
 Inheritedname : String
[read-only] The name of the filter (defines in the Shader).
ShaderCustomFilter
 Inheritednamespace : String
[read-only] The namespace of the filter (defines in the Shader).
ShaderCustomFilter
  outerRadius : Number
The outer radius of the circle (between 0 and 2800 px, default 100 px).
CircleSpectrumFilter
  ratio : Number
The ratio of the spectrum circle (between 0 and 1, default 1).
CircleSpectrumFilter
  rotation : Number
The ratio of the spectrum circle (between 0 and 360, default 0).
CircleSpectrumFilter
 Inheritedversion : String
[read-only] The version of the filter (defines in the Shader).
ShaderCustomFilter
Public Methods
 MethodDefined By
  
CircleSpectrumFilter(shader:Shader = null, init:Object = null)
Creates a new CircleSpectrumFilter instance.
CircleSpectrumFilter
  
clone():BitmapFilter
[override] Returns a shallow copy of the object.
CircleSpectrumFilter
Property Detail
centerproperty
center:Point

The center position of the circle (between {0,0} and {2800,2800}, default {100,100}).


Implementation
    public function get center():Point
    public function set center(value:Point):void
innerRadiusproperty 
innerRadius:Number

The inner radius of the circle (between 0 and 2800 px, default 100 px).


Implementation
    public function get innerRadius():Number
    public function set innerRadius(value:Number):void
outerRadiusproperty 
outerRadius:Number

The outer radius of the circle (between 0 and 2800 px, default 100 px).


Implementation
    public function get outerRadius():Number
    public function set outerRadius(value:Number):void
ratioproperty 
ratio:Number

The ratio of the spectrum circle (between 0 and 1, default 1).


Implementation
    public function get ratio():Number
    public function set ratio(value:Number):void
rotationproperty 
rotation:Number

The ratio of the spectrum circle (between 0 and 360, default 0).


Implementation
    public function get rotation():Number
    public function set rotation(value:Number):void
Constructor Detail
CircleSpectrumFilter()Constructor
public function CircleSpectrumFilter(shader:Shader = null, init:Object = null)

Creates a new CircleSpectrumFilter instance.

Parameters
shader:Shader (default = null) — The Shader reference with the CircleSpectrum pixel bender filter inside.
 
init:Object (default = null) — The optional dynamic object to initialize the filter.
Method Detail
clone()method
override public function clone():BitmapFilter

Returns a shallow copy of the object.

Returns
BitmapFilter — a shallow copy of the object.