void detailLSAT(){ int maxSub = max(monthCount[3][pos_x]); float ratio = 480.f / maxSub; strokeWeight(5); stroke(subColor[0]); float angle = -PI/2; for(int k = 0;k < 12; k++){ float diameter = monthCount[3][pos_x][k] * ratio; noFill(); arc(0,0,diameter, diameter,(k - 3) * PI / 6,(k - 2) * PI / 6); float d = dist(mouseX,mouseY,trancenter_x,trancenter_y); if(abs(d - diameter/2) <= 2.5){ if(detectPosition(mouseX-trancenter_x,mouseY-trancenter_y)==k){ textFont(f2); fill(255); text(monthCount[3][pos_x][k] + "",mouseX- trancenter_x, mouseY - trancenter_y - 5); } } } translate(-trancenter_x,-trancenter_y); textFont(f2); textAlign(RIGHT); noStroke(); fill(subColor[0]); text("General",1110, 40); }