Packagede.popforge.imageprocessing.filters.render
Classpublic final class OldschoolPlasma
ImplementsIFilter

The OldschoolPlasma class is a filter that uses a very old technique of sine waves to generate a plasma.

Supported formats:


Example
  
  var filter: OldschoolPlasma = new OldschoolPlasma();
  
  var image: Image = new Image( 160, 120, ImageFormat.RGB );
  
  filter.apply( image );
  



Public Methods
 MethodDefined by
  
OldschoolPlasma(monochrom:Boolean = false)
Creates a new OldschoolPlasma object.
OldschoolPlasma
  
apply(image:Image):void
Applies the filter to the given Image object.
OldschoolPlasma
  
toString():String
Builds and returns a string containing the name of the class.
OldschoolPlasma
Constructor detail
OldschoolPlasma()constructor
public function OldschoolPlasma(monochrom:Boolean = false)

Creates a new OldschoolPlasma object. For the first time an OldschoolPlasma is created that is not in monochromatic mode it will cache three look-up tables to map the colors. Theese tables will stay in the cache and a second instance would not have to calculate the same tables.

Parameters
monochrom:Boolean (default = false)true uses the same color for all channels.
Method detail
apply()method
public function apply(image:Image):void

Applies the filter to the given Image object.

Parameters
image:Image — The image that will be manipulated.
toString()method 
public function toString():String

Builds and returns a string containing the name of the class.

Returns
String — A string containing the name of the class.