| Package | de.popforge.imageprocessing.filters.render |
| Class | public final class InterpolatedPlasma |
| Implements | IFilter |
This filter is based on a technique from toxie^ainc. and the C++ implementation from Hopper.
Supported formats:
var filter: InterpolatedPlasma = new InterpolatedPlasma( 0xABCDEF, 1, 40 ); var image: Image = new Image( 160, 120, ImageFormat.RGB ); filter.apply( image );
See also
| Method | Defined by | ||
|---|---|---|---|
|
InterpolatedPlasma(randomSeed:int = 0xffff, amplitude:Number = 1, distance:int = 48, monochrom:Boolean = false)
Creates a new InterpolatedPlasma object.
| InterpolatedPlasma | ||
|
Applies the filter to the given Image object.
| InterpolatedPlasma | ||
|
toString():String
Builds and returns a string containing the name of the class.
| InterpolatedPlasma | ||
| InterpolatedPlasma | () | constructor |
public function InterpolatedPlasma(randomSeed:int = 0xffff, amplitude:Number = 1, distance:int = 48, monochrom:Boolean = false)Creates a new InterpolatedPlasma object.
ParametersrandomSeed:int (default = 0xffff) — The random seed number to use. If you keep all other parameters the same, you can generate different pseudo-random results by varying the random seed value. The InterpolatedPlasma function is a mapping function, not a true random-number generation function, so it creates the same results each time from the same random seed.
|
|
amplitude:Number (default = 1) — Amplitude of the sine waves.
|
|
distance:int (default = 48) — Distance between waves.
|
|
monochrom:Boolean (default = false) — true if you want to use the same color for all channels.
|
| apply | () | method |
public function apply(image:Image):voidApplies the filter to the given Image object.
Parametersimage:Image — The image that will be manipulated.
|
| toString | () | method |
public function toString():StringBuilds and returns a string containing the name of the class.
ReturnsString — A string containing the name of the class.
|