int n =32; void setup() {size(700, 700); PFont font = loadFont ("Courier-14.vlw"); textFont (font, 11); } void draw() {background(255); strokeWeight(3); smooth(); if(mousePressed) n+=int(20.*(mouseX-pmouseX)/width); n=max(3,n); fill(0); text("n="+n,width/2,height/2); noFill(); float x=width/3, y=0; float a=TWO_PI/n, t=tan(a/2), s=sin(a); beginShape(); for (int i=0; i