 updatePopulation = ->
   E('population').innerHTML = ""+cells.count
     
-#redraw()
-updatePopulation()
-redrawLoop()
 
 class MouseToolCombo extends MouseTool
   constructor: (@x0, @y0) ->

  if (handler = shortcuts[keyCode])?
    e.preventDefault()
    handler(e)
updateCanvasSize()
updateGrid()
updateMemoryButtons()
updatePlayButtons()
redraw()

    
    T = M.mul(M.mul(@endOffset, Mdelta), M.hyperbolicInv(@startOffset))

    #Make interpolator for this matrix
    Tinterp = interpolateHyperbolic T
    
    steps = generations * stepsPerGen
    timerId = setInterval (=>
      observer.navigateTo @startChain, @startOffset
      p = 1.0-steps/(stepsPerGen * generations)      
      observer.modifyView Tinterp(p)
      drawEverything()
      steps -=1
      #console.log "cur tfm: #{JSON.stringify observer.getViewOffsetMatrix()}"
      if steps < 0
        clearInterval timerId
