noise-0
2012. 05. 02.

Here comes the noise!

» launch noise-0

w = h = null

setup = ->
  # By the way, check out tabular.vim!
  size         $(window).width(), $(window).height()
  frameRate    60
  background   0
  colorMode    RGB, 1.0
  stroke       0.5
  strokeWeight 2
  fill         1
  w            = processing.width
  h            = processing.height

draw = ->
  background 0
  beginShape()
  f = frameCount()
  for i in [0...w] by 3
    v = 0.2 * h * noise(i * 0.05, f * 0.2) +
        0.3 * h * noise(i * 0.01, f * 0.05) +
          2 * h * noise(i * 0.002, f * 0.02) - h * 0.5
    vertex i, v
  vertex w, v
  vertex w, h
  vertex 0, h
  endShape()
» capture | close