   renderer.setSize window.innerWidth, window.innerHeight
   return
 
-#
+geometryTime = 0
+
 animate = ->
   requestAnimationFrame animate
   render()
   stats.update()
+  for line in lines
+    #updateGeometry line, geometryTime, true
+    line.flow Math.random()*200+100, Math.random()*200+100
+  geometryTime += 0.001
   return
+  
 render = ->
   time = Date.now() * 0.001
   mesh.rotation.x = time * 0.25

scene = undefined
renderer = undefined
mesh = undefined

init = ->
  container = document.getElementById("container")
  

  camera = new THREE.PerspectiveCamera(27, window.innerWidth / window.innerHeight, 1, 4000)
  camera.position.z = 2750
  scene = new THREE.Scene()

  
  line = new FlowingLine 100 #segments
  line.initial 0, 0, -200, 200

  lines.push line

  mesh = new THREE.Object3D
  mesh.add line.mesh

  scene.add mesh
  
  #
