Class PlasmaFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class PlasmaFilter extends WholeImageFilter
  • Field Details

    • turbulence

      public float turbulence
  • Constructor Details

    • PlasmaFilter

      public PlasmaFilter()
  • Method Details

    • setTurbulence

      public void setTurbulence(float turbulence)
      Specifies the turbulence of the texture.
      Parameters:
      turbulence - the turbulence of the texture.
      See Also:
    • getTurbulence

      public float getTurbulence()
      Returns the turbulence of the effect.
      Returns:
      the turbulence of the effect.
      See Also:
    • setScaling

      public void setScaling(float scaling)
    • getScaling

      public float getScaling()
    • setColormap

      public void setColormap(Colormap colormap)
      Set the colormap to be used for the filter.
      Parameters:
      colormap - the colormap
      See Also:
    • getColormap

      public Colormap getColormap()
      Get the colormap to be used for the filter.
      Returns:
      the colormap
      See Also:
    • setUseColormap

      public void setUseColormap(boolean useColormap)
    • getUseColormap

      public boolean getUseColormap()
    • setUseImageColors

      public void setUseImageColors(boolean useImageColors)
    • getUseImageColors

      public boolean getUseImageColors()
    • setSeed

      public void setSeed(int seed)
    • getSeed

      public int getSeed()
    • randomize

      public void randomize()
    • filterPixels

      protected int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
      Description copied from class: WholeImageFilter
      Actually filter the pixels.
      Specified by:
      filterPixels in class WholeImageFilter
      Parameters:
      width - the image width
      height - the image height
      inPixels - the image pixels
      transformedSpace - the output bounds
      Returns:
      the output pixels
    • toString

      public String toString()
      Overrides:
      toString in class Object