processing:noise

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
processing:noise [2019/11/07 17:36] – 作成 babaprocessing:noise [2019/11/08 07:09] – [シンプルな例] baba
行 2: 行 2:
 このページでは映像表現で頻繁に利用するnoiseに関しての情報をまとめます。また、noiseを使うときの雛形としてご利用ください。 このページでは映像表現で頻繁に利用するnoiseに関しての情報をまとめます。また、noiseを使うときの雛形としてご利用ください。
   * 公式リファレンス:https://processing.org/reference/noise_.html   * 公式リファレンス:https://processing.org/reference/noise_.html
 +
 +===== シンプルな例 =====
 +<WRAP group>
 +<WRAP half column>
 +
 +<code>
 +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);
 +}
 +</code>
 +</WRAP>
 +
 +<WRAP half column>
 +{{ :processing:noise_.gif |}}
 +</WRAP>
 +</WRAP>
 +
  
  
  
  
  • /home/users/2/lolipop.jp-4404d470cd64c603/web/ws/data/pages/processing/noise.txt
  • 最終更新: 2019/11/22 09:04
  • by baba