| Package | de.popforge.imageprocessing.filters.render |
| Class | public final class SinePlasma |
| Implements | IFilter |
The formula of this filter is new = ( 0x7f + 63.5 * sin( frequencyX * x ) + 63.5 * sin( frequencyY * y ) ) * amplitude.
This filter is based on a technique from toxie^ainc. and the C++ implementation from Hopper.
Supported formats:
var filter: SinePlasma = new SinePlasma(); var image: Image = new Image( 160, 120, ImageFormat.RGB ); filter.apply( image );
See also
| Method | Defined by | ||
|---|---|---|---|
|
SinePlasma(amplitude:Number = 1, frequencyX:Number = 0.0625, frequencyY:Number = 0.0625)
Creates a new SinePlasma object.
| SinePlasma | ||
|
Applies the filter to the given Image object.
| SinePlasma | ||
|
toString():String
Builds and returns a string containing the name of the class.
| SinePlasma | ||
| SinePlasma | () | constructor |
public function SinePlasma(amplitude:Number = 1, frequencyX:Number = 0.0625, frequencyY:Number = 0.0625)Creates a new SinePlasma object.
Parametersamplitude:Number (default = 1) — The amplitude of the sine waves.
|
|
frequencyX:Number (default = 0.0625) — The wave frequency in x direction.
|
|
frequencyY:Number (default = 0.0625) — The wave frequency in y direction.
|
| 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.
|