There's so much power sitting in our web browsers. Let's have some fun.
Let's use canvas to build up a little JavaScript animation toy from scratch. At the end, we'll have a web page with a canvas that's painted by a function we can code on the page itself.
Starting from a blank page called index.html
, we'll create our canvas and draw something simple.
Now that we know canvas is working and we can write to it. Let's set up a small animation.