/javascript-canvas

Basic examples of using JavaScript and the HTML5 canvas element.

Primary LanguageHTML

A Basic Introduction to JavaScript and The Canvas

This repository is a series of basic JavaScript and the HTML5 canvas element.

  • Sizing the Canvas - canvas-size.html
  • The Canvas and Buttons - canvas-and-buttons.html
  • Basic Animation - canvas-basic-animation.html
  • Animating a Bounce - canvas-bounce-animation.html
  • Animating Multiple Items - canvas-multiple-animations.html
  • Mouse Position - canvas-follow-mouse.html
  • Reacting to a Click - canvas-click.html
  • Random Lines - canvas-random-lines.html

Repo Resources