class FlowR{ Venus venus; PImage prev; FlowR(){ venus = new Venus(0,0,0,50); prev = new PImage(width,height); } void draw(){ background(255,0,64); pushMatrix(); translate(width/2,height/2); scale(4); //scale(.8); rotateX(radians(2*frameCount%360)); rotateZ(radians(frameCount%360)); doLights(); glitch(); venus.draw(); popMatrix(); int ad = -10;////-10; prev.copy(g, 0,0,width,height,ad,ad,width-2*ad,height-2*ad);//<<200 } void doLights(){ ambientLight(51, 102, 126); spotLight(255, 128, 0, 0, -200, 0, 0, 1, 0, PI/2, 2); //directionalLight(51, 102, 126, 0, -1, 0); pointLight(255, 240, 248, 0, 500, 0); } class Venus{ float x, y, z; float r; Turururu[] turururus; Venus(float x, float y, float z, float r){ this.x=x; this.y=y; this.z=z; this.r=r; turururus = new Turururu[50]; for(int i=0; i>1 } updatePixels(); } }