Trying to learn the html5 canvas api.