class Sunlight{ float noiseScale=0.3;//0.3;//0.1;//.005;//.01;//0.02;//.01;//0.02; int w, h; float cellw, cellh; Sunlight(){ //size(800,400,P3D);//screen.width,screen.height,P3D); w = 64; h = 48; cellw = width/float(w); cellh = height/float(h); rectMode(CENTER); //noLoop(); } void draw() { pushStyle(); colorMode(RGB, 255); background(0); noStroke(); translate(cellw/2, cellh/2); for(int i=0; i