previous

page 23

next
my index.html
<html>
<head>
<title>Turtle Graphics</title>
<link rel='stylesheet' href='styles.css'>
<script src='globals.js'></script>
<script src='my.js'></script>
</head>
<body onResize='resize();'>
<div id='main'>
<div>
<canvas id='c'></canvas>
</div>
<div id='buttons'>
<div onClick='reset(); g_running=true; spirals();'>SPIRALS</div>
<div onClick='reset(); g_running=true; polys();'>POLYGONS</div>
<div onClick='reset(); g_running=true; starry();'>STARS</div>
<div onClick='reset(); g_running=true; roses();'>ROSES</div>
<div onClick='slow();'>SLOW</div>
<div onClick='fast();'>FAST</div>
<div onClick='stop();'>STOP</div>
<div onClick='reset(); tree();'>TREE</div>
<div onClick='reset(); wow()'>WOW!</div>
</div>
</div>
<script>setup();</script>
</body>
</html>
previous
next