class Highlight{ public float angle; float life, halflife; boolean center; public Highlight (float a, boolean c){ angle = a; center = c; life = PI/8; } public void draw(){ if (life >0){ if (center){ noFill(); stroke(0,0,255); strokeWeight(life*8); ellipse(halfwidth,halfheight,life*100,life*100); } else{ noFill(); stroke(0,0,255); strokeWeight(PI - life*8); arc (halfwidth,halfheight,width,height,angle - life,angle + life); arc (halfwidth,halfheight,width*0.75,height*0.75,angle - life,angle + life); life -= 0.005; } life -= 0.005; halflife = life * 0.05; } } }