So basically, you use the cursor (macOS or Microsoft Windows (Vista & above.)) to draw. To erase the drawing, you have to tap the space bar (you need a keyboard) to erase the drawing you did recently. Sadly, touchscreen doesn't work on this project.
This took me 3 & half minutes to make. Credits to my friend, ShivamKuber2015, stieglasgow_chu and lpt2! A big thank you to them because they gave me inspiration. Thank you to visited my project. Really appreciate that.