import java.awt.*; import java.awt.image.*; import java.applet.*; import java.net.*; import java.io.*; import java.lang.Math; import java.util.*; import java.awt.event.*; import javax.swing.*; import javax.swing.JApplet; import javax.imageio.*; import javax.swing.event.*; public class condimentNoise { int[] input; int[] output; int progress; float amount; int width; int height; Random randgen; public void condimentNoise() { progress=0; } public void init(int[] original, int widthIn, int heightIn, float amountIn) { randgen = new Random(); amount=amountIn; width=widthIn; height=heightIn; input = new int[width*height]; output = new int[width*height]; input=original; } public int[] process() { double rand; int result = 0; for(int x=0; x