Class PlasmaFilter

  • All Implemented Interfaces:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class PlasmaFilter
    extends WholeImageFilter
    • Field Detail

      • turbulence

        public float turbulence
    • Constructor Detail

      • PlasmaFilter

        public PlasmaFilter()
    • Method Detail

      • setTurbulence

        public void setTurbulence​(float turbulence)
        Specifies the turbulence of the texture.
        Parameters:
        turbulence - the turbulence of the texture. (min value: 0, max-value: 10)
        See Also:
        getTurbulence()
      • getTurbulence

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

        public void setScaling​(float scaling)
        Set the scaling.
        Parameters:
        scaling - The scaling.
        See Also:
        getScaling()
      • getScaling

        public float getScaling()
        Get the scaling.
        Returns:
        The scaling.
        See Also:
        setScaling(float)
      • setColormap

        public void setColormap​(Colormap colormap)
        Set the colormap to be used for the filter.
        Parameters:
        colormap - the colormap
        See Also:
        getColormap()
      • 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,
                                     java.awt.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object