     state = @isim.getInterpolatedState()
     for line, i in @lines
       i2 = i*2
-      line.flow state[i2]*@scale, state[i2+1]*@scale
+      line.flow (state[i2]-16)*@scale, (state[i2+1]-16)*@scale
       #if i is 0
       #  console.log "Point 0: #{state[i2]}, #{state[i2+1]}"
     return

  requestAnimationFrame animate
  render()
  stats.update()
  curves.step()
  geometryTime += 0.001
  return
  

class FlyingCurves
  constructor: ->

    pattern = parseRle "$3b2o$2bobob2o$2bo5bo$7b2o$b2o$bo5bo$2b2obobo$5b2oo"
    simulator = new Simulator 32, 32 #field size
    simulator.put pattern, 12, 12 #pattern roughly at the center
    
