I made this pen animation for fun. The two variables in the bottom (mouseX and mouseY) tell where your mouse is on the screen.