This is another JavaScript test with the HTML5 Canvas in a blog post. It recreates the bouncing ball exercise.
Continue reading
HTML5 Testing
I try to put a canvas (400 x 300 pixels) here with an orange (#FFAA00) rectangle.
<canvas id="myCanvas" width="400" height="300"></canvas> <script type="text/javascript"> var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); context.fillStyle = "#FFAA00"; context.fillRect(0,0,200,100); </script> |