HTML and CSS Reference
In-Depth Information
function
function
gameLoop
() {
window
.
setTimeout
(
gameLoop
,
20
);
drawScreen
()
}
var
var
colorStops
=
new
new
Array
(
{
color
:
"#FF0000"
,
stopPercent
:
0
},
{
color
:
"#FFFF00"
,
stopPercent
:
.
125
},
{
color
:
"#00FF00"
,
stopPercent
:
.
375
},
{
color
:
"#0000FF"
,
stopPercent
:
.
625
},
{
color
:
"#FF00FF"
,
stopPercent
:
.
875
},
{
color
:
"#FF0000"
,
stopPercent
:
1
});
gameLoop
();
}
<
/script>
</head>
</head>
<body>
<body>
<canvas
<canvas id=
"canvasOne"
width=
"600"
height=
"200"
>
Your browser does not support HTML 5 Canvas.
</canvas>
</canvas>
</div>
</div>
</body>
</body>
</html>
</html>