void setup (){ size(400,400); smooth(); } float cuberoot = 1.25992105; float theta=radians(24); float angle; int xorg=150; int yorg=300; void kempe (float x, float y){ float bx = y * cos (theta); float by = y * sin (theta); float phi = atan (by / (bx - x)); float cx = bx + x * cos (2 * phi); float cy = by + x * sin (2 * phi); line(0, 0, x, 0); line(x, 0, cx, cy); line(cx, cy, bx, by); line(bx, by, 0, 0); } void draw (){ fill(255); rect(0,0,400,400); fill(0); noFill(); pushMatrix(); translate(xorg,yorg); scale(1,-1); kempe(100,100*cuberoot); rotate(theta); kempe(100*cuberoot,100*cuberoot*cuberoot); rotate(theta); kempe(100*cuberoot*cuberoot, 200); popMatrix(); } void mouseDragged(){ print(mouseX);print(" "); print(mouseY);print(" "); if(mouseX==xorg){angle=PI/2;} else{if(xorg