class circle{ float x; float y; float D; float D1; float Col; float iden; PFont courierNew; circle (float inX, float inY, float inDiam1, float inDiam2, float id, PFont cNew){ x = inX; y = inY; D1 = inDiam1; D = inDiam2; Col = 0; iden = id; courierNew=cNew; } void render (){ moveIN(); moveOUT(); moveOUTmouse(); //links(); borders(); fillCol(); fill (Col,50); stroke(90,150); ellipse (x,y,D,D); //stroke(150); //line (x-5, y, x+5, y); //line (x, y-5, x, y+5); fill (100,100); textFont(courierNew, 10); text(Col, x, y); } // CLASS FUNCTIONS void moveIN (){ float d; for (int i=0; i 1 && i!=iden){ Col = Col + df*2; //Col = Col + 25; } } } void links (){ float d, dmin; for (int i=0; i width-D/2) x = width-D/2; if ( y > height-D/2) y = height-D/2; } }