HTML and CSS Reference
In-Depth Information
theCanvas
.
addEventListener
(
"mouseup"
,
eventMouseUp
,
false
false
);
function
function
gameLoop
() {
window
.
setTimeout
(
gameLoop
,
20
);
drawScreen
();
}
gameLoop
();
}
<
/script>
</head>
</head>
<body>
<body>
<canvas
<canvas id=
"canvasOne"
width=
"370"
height=
"300"
style=
"position: absolute;
top: 50px; left: 50px;"
>
Your browser does not support HTML5 Canvas.
</canvas>
</canvas>
</body>
</body>
</html>
</html>