       ps[i3+1] = ps[i3+4]
     i3 = (@segments-1)*3
     delta = Math.abs(ps[i3]-x) + Math.abs(ps[i3+1]-y)
-    if delta > 100
+    if delta > 4
       ps[i3-3]=NaN
       ps[i3-2]=NaN
     ps[i3]   =x

  #controls.addEventListener 'change', render

  curves = new FlyingCurves
    
  mesh = curves.group
  scene.add mesh
  
  #
  renderer = new THREE.WebGLRenderer(antialias: false)

camera = undefined
scene = undefined
renderer = undefined
controls = undefined

palette = [0xfe8f0f, 0xf7325e, 0x7dc410, 0xfef8cf, 0x0264ed]
