Click on a color square to switch to that color. Click on x to switch to eraser. Click on arrow to hide the side board. Press e to erase all. Change the slider to change pen thickness. (You have to pause drawing to change pen thickness.)
Credit for 75% of the coding to @Astro_Chaz_Ultimate2 and for ALL of the Pen, I just made the open/close arrow, the video sensing, and the ability to change pen thickness. Thank you for viewing!