noiseSeed

概要

p5.jsリファレンス(参考情報)

[p5.js] noiseSeed

サンプル

def setup
  @xoff = 0.0
  noiseSeed(99)
  stroke(0, 10)
end

def draw
  @xoff = @xoff + 0.01
  n = noise(@xoff) * width
  line(n, 0, n, height)
end

構文

戻値