![]() |
HTML5, canvas, and time-delay
Ok, this is a pretty simple setup. I create an HTML5 canvas, make it 250 by 250 pixels, color it grey just to show where its boundaries are, then i put 6 blue circles across it:
Code:
<script> |
sounds like a job for setTimeout...
Code:
<script type="text/javascript"> |
Quote:
var circ=0; inside function drawCircs() --- that put the drawing of circles into an endless loop (although that wasn't immediately apparent because the other circles were being drawn off the canvas). |
| All times are GMT +1. The time now is 07:08 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.