Canvas

  

1. Basic Shapes

Copy code, save in folder and refresh in browser.





Add Text labels





Activity

Label the other shapes.

Structured Canvas

Polygons.

Copy code to editor, save in folder and refresh in browser.
Note the more structured code layout.



Polygons



Random.

Draw random circles.


Modify the script to draw random circles with random colours.
This is done by choosing random values for R G B.


Random Circles



Animation

Crab Images/Sprites



Crab 1



Move Down



Crab 2



Arrow Keys