Class Index | File Index

Classes


Class CAAT.Module.Image.ImageProcessor.IMPlasma


Extends CAAT.Module.Image.ImageProcessor.ImageProcessor.

Defined in: IMPlasma.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
apply(director, time)
Apply image processing to create the plasma and call superclass's apply to make the result visible.
 
initialize(width, height, colors)
Initialize the plasma image processor.
 
setB()
Initialize internal plasma structures.
Methods borrowed from class CAAT.Module.Image.ImageProcessor.ImageProcessor:
applyIM, clear, createPattern, getCanvas, getImageData, grabPixels, makeArray, makeArray2D, paint
Class Detail
CAAT.Module.Image.ImageProcessor.IMPlasma()
Method Detail
apply(director, time)
Apply image processing to create the plasma and call superclass's apply to make the result visible.
Parameters:
director
{CAAT.Director}
time
{number}
Returns:
this

initialize(width, height, colors)
Initialize the plasma image processor.

This image processor creates a color ramp of 256 elements from the colors of the parameter 'colors'. Be aware of color definition since the alpha values count to create the ramp.

Parameters:
width
{number}
height
{number}
colors
{Array.} an array of color values.
Returns:
this

setB()
Initialize internal plasma structures. Calling repeatedly this method will make the plasma look different.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:19 GMT-0700 (PDT)