canvas = {
var c = this ? this.getContext('2d') : DOM.context2d(width, height);
var canvas = c.canvas;
c.fillStyle = "blue";
var i = this && this.i || 0;
while (playing) {
c.clearRect(0, 0, width, height);
c.beginPath();
c.arc((Math.sin(i / 100) + 1) * width / 2, (Math.cos(i / 100) + 1) * height / 2, 50, 0, 2 * Math.PI);
c.fill();
canvas.i = i = i + 1;
yield canvas;
}
yield canvas;
}