void setup() { size(300,300); smooth(); stroke(255); strokeWeight(10); } void draw() { background(0); float dx = mouseX - width/2; float dy = mouseY - height/2; float angle = atan2(dy, dx); translate(width/2,height/2); rotate(angle); line(0,0,100,0); } // START NO NOTES // code used to capture screenshots void keyReleased() { if(key == '`' && !online) save("sketch.png"); }