public static void main(String... args) throws IOException{
		final int WIDTH=1000,HEIGHT=800,OCTAVES=10;
		final double PERSISTENCE = 0.6;
		final float WAVELENGTH = 100f;
		
		PerlinImage p = new PerlinImage(3, PERSISTENCE, OCTAVES,WAVELENGTH,WIDTH,HEIGHT,1.2);
		BufferedImage i = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);
		
		long start = System.currentTimeMillis();
		for(int y=0;y<HEIGHT;y++){
			for(int x=0;x<WIDTH;x++){
				double b = p.getNoiseAt(x, y);
				//System.out.println(b);
				if(b > 0 && b < 1){
					i.setRGB(x, y, new Color(0f,b > 0.2 ? (float) b : b > 0.1 ? (float) b*0.5f : 0f ,b <= 0.2 ? 0.7f : b > 0.4 ? (float) 0.5f : 0.0f).getRGB());
				}
			}
		}
		
		System.out.println("Generation completed in " + (System.currentTimeMillis() - start) + " ms");
		ImageIO.write(i, "png", new File("/home/george/Desktop/anotherperlin.png"));
	}