Class CAAT.Module.Image.ImageProcessor.IMPlasma
Extends
CAAT.Module.Image.ImageProcessor.ImageProcessor.
Defined in: IMPlasma.js.
Constructor Attributes | Constructor Name and Description |
---|---|
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
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.