Getting Started

  • document.getElementById('myCanvas');
  • ctx will hold the Drawing Context
  • Drawing Contex
  • Draw a rectangle or two
  • fillRect and strokeRect are examples of primitives in this graphics system.
  • Draw a line
  • Draw a couple of circles
  • Finally, some text