 two.bind('update', (frameCount) ->
 	do keysEvents
 
-	if (rect.custom > 0.9999)
-		rect.custom = rect.rotation = 0
-	t = (1 - rect.custom) * 0.05
-	rect.custom += t
-	rect.rotation += t * 4 * Math.PI
-
 	for c in circles
 		c.translation.x += c.acceleration * Math.cos(c.rotation)
 		c.translation.y += c.acceleration * Math.sin(c.rotation)


elem = document.getElementById('draw-shapes')
params = { fullscreen: true }
two = new Two(params).appendTo(elem)

rect = two.makeRectangle(213, 100, 100, 100)

getCircles = (int) ->
	iter = (circles, r) ->
		if int < 0
			circles
		else
			circle = two.makeCircle(72, 100, r)
			circle.fill = '#FF8000'
			circle.stroke = 'orangered'
			circle.linewidth = 5

		pressed: false
		execute: () ->
			for circle in circles
				circle.translation.x = pos.x
				circle.translation.y = pos.y
			true
	}
}
