Posts
Coding "Hazel"
- Get link
- Other Apps
Many hours in the computer lab and I am still not quite finished. I do want to turn something in though so here is how far I got. Still missing details like the hands and feet. I'll update the post in a couple of days when everything is done, because I really do want to finish the complete image. Here's the code so far... <!DOCTYPE HTML> <html> <head> <script> window.onload = function() { var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); ////////////////////////////////////// start below this line ˇˇˇˇˇˇˇˇˇˇ //outline of entire squirrel context.beginPath(); context.moveTo (248, 123); context.quadraticCurveTo(260, 60, 280, 55); context.quadraticCurveTo(295, 50, 325,100); context.lineTo(355, 100); context.quadraticCurveTo(405, 45, 420, 50); context.quadraticCurveTo(440, 65, 450, 125); context.quadraticCurveTo(475, 100, 540, 105); context.quadraticCurve