com.sygem.visimagik
Class FilterPlasma
java.lang.Object
|
+--com.sygem.visimagik.Filter
|
+--com.sygem.visimagik.FilterPlasma
- public class FilterPlasma
- extends Filter
Wavey plasma-thing filter.
- Version:
- 3.0a
- Author:
- SyGem Software
- See Also:
Filter
Method Summary |
void |
execute(int[] graphics_array)
Perform the image processing. |
void |
setAmplitude(int x,
int y)
Sets the amplitude of the plasma. |
void |
setBackgroundColour(int r,
int g,
int b)
Sets the colour of the canvas behind the image being processed. |
void |
setInitialPhase(int x,
int y)
Sets the inital phase angles of the plasma. |
void |
setPhase(int x,
int y)
Sets the phase speed of the plasma. |
void |
setSpeed(int x,
int y)
Sets the speed of the movement of plasma. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterPlasma
public FilterPlasma()
- Default constructor.
setSpeed
public void setSpeed(int x,
int y)
- Sets the speed of the movement of plasma.
- Parameters:
x
- The speed of movement in the x-directiony
- The speed of movement in the y-direction
setAmplitude
public void setAmplitude(int x,
int y)
- Sets the amplitude of the plasma.
- Parameters:
x
- The amplitude in the x-directiony
- The amplitude in the y-direction
setPhase
public void setPhase(int x,
int y)
- Sets the phase speed of the plasma.
- Parameters:
x
- The phase speed in the x-directiony
- The phase speed in the y-direction
setInitialPhase
public void setInitialPhase(int x,
int y)
- Sets the inital phase angles of the plasma.
- Parameters:
x
- The initial phase of the x-directiony
- The initial phase of the y-direction
setBackgroundColour
public void setBackgroundColour(int r,
int g,
int b)
- Sets the colour of the canvas behind the image being processed. This is required
because sometimes the wavey effect will reveal some of the background image. You
can set to any colour you like.
- Parameters:
r
- The red component of the colour. Must be bewteen 0 and 255g
- The green component of the colour. Must be bewteen 0 and 255b
- The blue component of the colour. Must be bewteen 0 and 255
execute
public void execute(int[] graphics_array)
- Perform the image processing.
- Parameters:
graphics_array
- The array to perform the processing on- See Also:
Visimagik