Hold down the mouse and drag to paint! Click the icons to change the pen colour, erase or clear. Change the value of the 'width' variable to change the pen width.
Credited by CodeClubRix. I have added more colors to learn how to make this project work.