class FuzzBall extends Ball { //---------------------------- // variables int fuzzIncr = 5; //---------------------------- void draw() { // draw lines in a circle around the center fill(#176C21); stroke(0); beginShape(); for (int i=0; i < 360; i += fuzzIncr) { float offsetX = random(ballRadius-5, ballRadius+5) * cos(radians(i)); float offsetY = random(ballRadius-5, ballRadius+5) * sin(radians(i)); vertex(centerX + offsetX, centerY + offsetY); } endShape(); // draw some eyes stroke(0); drawLeftEye(mouseX, mouseY); drawRightEye(mouseX, mouseY); } }