文書の過去の版を表示しています。
noiseを使いこなす
このページでは映像表現で頻繁に利用するnoiseに関しての情報をまとめます。また、noiseを使うときの雛形としてご利用ください。
シンプルな例
float x = 0.0; void setup() { size(500,500); } void draw() { background(204); x = x + 0.005f; float n = noise(x) * width; // noiseは 0.0f - 1.0f の範囲で値を返す strokeWeight(10); point(width/2, n); text(str(n), 10+width/2, n); }