import hardcorepawn.fog.*; fog myFog; float nearDist; float farDist; color fogColor; float a; void setup() { size(200,200,P3D); myFog=new fog(this); nearDist=120; farDist=200; myFog.setupFog(nearDist,farDist); fogColor=color(64,128,256); myFog.setColor(fogColor); a=0; } void draw() { a+=0.01; background(fogColor); // noStroke(); translate(width/2,height/2,0); rotateX(-(HALF_PI/3.0)); rotateY(a); box(100); myFog.doFog(); }