HTML and CSS Reference
In-Depth Information
Figure 5-17. Simple gravity with an object moving on a vector
You can test out Example 5-14 with the file CH5EX14.html in the code distribution,
or type in the full code listing below.
Example 5-14. Simple gravity
a<!doctype html>
<html lang="en">
<meta charset="UTF-8">
<title>CH5EX14: Simple Gravity</title>
<script src="modernizr-1.6.min.js"></script>
<script type="text/javascript">
window.addEventListener('load', eventWindowLoaded, false);
function eventWindowLoaded() {
function canvasSupport () {
return Modernizr.canvas;
Search WWH ::

Custom Search