This is for experimental purposes, and if anyone somehow finds a use for this simple project.
Press E to record, then E again to stop recording. While dragging your mouse and recording, it displays a pen trail when repeating. Enjoy ;)