// noise() (パーリンノイズ)のテスト。引数1つの場合 // 縦棒の横位置が変化するが、滑らかに変化しているのが分かる float xoff = 0.0; void setup() { size(256, 256); } void draw() { background(204); xoff += 0.01; float n = noise(xoff) * width; line(n, 0, n, height); }