Use the coloured dots to change the colours and press reset to to clear your drawing. To change the size of the pen, press the up and down arrows on the page.
Thanks to @coderrgh_test for some of the code. The rest is by me. Enjoy!