The canvas is 600x600 in dimension.
Left click to draw a filled red circle centered at the mouse position and with radius of 10. Right Click to draw a filled blue square centered at the mouse position and with a side of length 10. Click both to draw both circle and square. If there is a sequence of left and right clicks at the same position, only the latest click will be visible.
Open console to view the list of dots' x and y coordinate by entering "dotArrayx" and "dotArrayy".
Open console to view the list of left/right/both clicks by entering "isLeft". 1 represents a left click, 0 represents a right click, 2 represents both.
Open console to view "left click", "right click" or "left and right click" recorded when you do a left/right/both click.
Homepage