class LineBall extends Ball { //---------------------------- // variables int lineIncr = 1; //---------------------------- void draw() { // draw lines in a circle from the center stroke(#1E2995); noFill(); for (int i=0; i < 360; i += lineIncr) { float offsetX = random(ballRadius-5, ballRadius+5) * cos(radians(i)); float offsetY = random(ballRadius-5, ballRadius+5) * sin(radians(i)); line(centerX, centerY, centerX + offsetX, centerY + offsetY); } // draw some eyes stroke(0); drawLeftEye(mouseX, mouseY); drawRightEye(mouseX, mouseY); } }