PGraphics canvas; PImage blurredCanvas; square[][][] grid; float[][][] values; int res=40; float halfres=20.5; float scale; float noiseScale; float noiseChange; int inc; boolean lores; void setup(){ size(800,800); background(0); noFill(); canvas=createGraphics(800,800,P3D); canvas.beginDraw(); canvas.background(0); canvas.noFill(); canvas.endDraw(); blurredCanvas=createImage(800,800, RGB); lores=true; scale=18.0f; inc=200; noiseDetail(8,0.5f); grid = new square[res][res][2*inc+1]; values = new float[res+1][res+1][2*inc+1]; noiseScale=20.0f; noiseChange=200.0f; for(int i=0;i