Package | cv.orion.renderers |
Class | public class BitmapRenderer |
Inheritance | BitmapRenderer ![]() |
Subclasses | PixelRenderer |
Property | Defined by | ||
---|---|---|---|
debug : Boolean = false
Turns on debug lines to outline the emitter and canvas dimensions
| BitmapRenderer | ||
drawTargets : Array
An array of items to be drawn to th renderer.
| BitmapRenderer | ||
paused : Boolean
Gets or sets the paused property
| BitmapRenderer | ||
postFilters : Array
Fitlers that will be applied after new particles have been drawn to
the bitmap.
| BitmapRenderer | ||
preFilters : Array
Filters that will be applied before new particles are drawn to the
bitmap.
| BitmapRenderer |
Method | Defined by | ||
---|---|---|---|
BitmapRenderer | |||
clear():void
Clears the renderer.
| BitmapRenderer | ||
getPalletteMap():Array
Gets the palletemap if it was set.
| BitmapRenderer | ||
pause():void
Pauses the renderer
| BitmapRenderer | ||
play():void
Resumes or plays the renderer
| BitmapRenderer | ||
render(e:Event = null):void
Calls the renderer to draw the particles.
| BitmapRenderer | ||
setPalletteMap(red:Array = null, green:Array = null, blue:Array = null, alpha:Array = null):void
Remaps the color channel values in an image that has up to four arrays of color
palette data, one for each channel.
| BitmapRenderer |
Method | Defined by | ||
---|---|---|---|
stageHandler(e:Event):void
Clears and inits the bitmap data once it has access to the stage.
| BitmapRenderer |
debug | property |
public var debug:Boolean = false
Turns on debug lines to outline the emitter and canvas dimensions
drawTargets | property |
public var drawTargets:Array
An array of items to be drawn to th renderer.
paused | property |
paused:Boolean
[read-write]Gets or sets the paused property
Implementation public function get paused():Boolean
public function set paused(value:Boolean):void
postFilters | property |
public var postFilters:Array
Fitlers that will be applied after new particles have been drawn to the bitmap.
preFilters | property |
public var preFilters:Array
Filters that will be applied before new particles are drawn to the bitmap.
BitmapRenderer | () | constructor |
public function BitmapRenderer()
clear | () | method |
public function clear():void
Clears the renderer.
getPalletteMap | () | method |
public function getPalletteMap():Array
Gets the palletemap if it was set. If it wasn't set, it will just return an empty or null array.
ReturnsArray — An array of the pallette colors.
|
pause | () | method |
public function pause():void
Pauses the renderer
play | () | method |
public function play():void
Resumes or plays the renderer
render | () | method |
public function render(e:Event = null):void
Calls the renderer to draw the particles.
Parameterse:Event (default = null ) — The emitter associated with the particles.
|
setPalletteMap | () | method |
public function setPalletteMap(red:Array = null, green:Array = null, blue:Array = null, alpha:Array = null):void
Remaps the color channel values in an image that has up to four arrays of color palette data, one for each channel.
Parametersred:Array (default = null ) — If redArray is not null, red = redArray[source red value] else red = source rect value.
|
|
green:Array (default = null ) — If greenArray is not null, green = greenArray[source green value] else green = source green value.
|
|
blue:Array (default = null ) — If blueArray is not null, blue = blueArray[source blue value] else blue = source blue value.
|
|
alpha:Array (default = null ) — If alphaArray is not null, alpha = alphaArray[source alpha value] else alpha = source alpha value.
|
stageHandler | () | method |
protected function stageHandler(e:Event):void
Clears and inits the bitmap data once it has access to the stage.
Parameterse:Event |