| Package | de.popforge.imageprocessing.filters.render |
| Class | public final class FractalPlasma |
| Implements | IFilter |
Attention! This is a very CPU intensive filter.
This shows the influence of the roughness factor on a grayscale image.
Roughness 0.000:
Roughness 0.075:
Roughness 0.190:
Supported formats:
var filter: FractalPlasma = new FractalPlasma( 0xabcdef ); var image: Image = new Image( 120, 120, ImageFormat.RGB ); filter.apply( image );
See also
| Method | Defined by | ||
|---|---|---|---|
|
FractalPlasma(randomSeed:int = -1, roughness:Number = 0.075, bias:int = 0x40, amplitude:Number = 1)
Creates a new FractalPlasma object.
| FractalPlasma | ||
|
Applies the filter to the given Image object.
| FractalPlasma | ||
|
toString():String
Builds and returns a string containing the name of the class.
| FractalPlasma | ||
| FractalPlasma | () | constructor |
public function FractalPlasma(randomSeed:int = -1, roughness:Number = 0.075, bias:int = 0x40, amplitude:Number = 1)Creates a new FractalPlasma object.
ParametersrandomSeed:int (default = -1) — 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 FractalPlasma 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.
|
|
roughness:Number (default = 0.075) — The roughness factor of the plasma (should be a small value).
|
|
bias:int (default = 0x40) — The bias of the colors from 0x00 to 0xff.
|
|
amplitude:Number (default = 1) — Amplitude of the plasma from 0 to 1.
|
| 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.
|