 
     @renderer.render @stage
 
-    requestAnimationFrame @draw
+    frame @draw

    b = hue2rgb(p, q, h - 1 / 3)

  ((r * 255) << 16) + ((g * 255) << 8) + (b * 255)

class Vector
  constructor: (@x, @y) ->

  computeRatio: =>
    devicePixelRatio = window.devicePixelRatio or 1
    context = @renderer.gl or @renderer.context
    backingStoreRatio = context.backingStorePixelRatio or
                        context.webkitBackingStorePixelRatio or
                        context.mozBackingStorePixelRatio or
                        context.msBackingStorePixelRatio or
                        context.oBackingStorePixelRatio or 1

    @ratio = devicePixelRatio / backingStoreRatio

