lecture:design_with_prototyping:p5.js編:10デジタルキュビズム

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン両方とも次のリビジョン
lecture:design_with_prototyping:p5.js編:10デジタルキュビズム [2021/02/28 11:36] – [Sample05] babalecture:design_with_prototyping:p5.js編:10デジタルキュビズム [2021/02/28 11:40] – [Sample06] baba
行 166: 行 166:
 ==== Sample06 ==== ==== Sample06 ====
 {{:lecture:design_with_prototyping:スクリーンショット_2018-10-16_16.01.04.png?nolink&200 |}} {{:lecture:design_with_prototyping:スクリーンショット_2018-10-16_16.01.04.png?nolink&200 |}}
-<file .pde 01_sample08.pde+<file .js sketch.js
-size(200, 200);     +function setup() { 
-background(0); +  createCanvas(200, 200); 
-stroke(255); +  noLoop(); 
-strokeWeight(5); +
-beginShape(POINTS); + 
-for ( int i = 0; i < 100; i=i+10 ) { +function draw() { 
-  vertex(50+random(-3,3), 50+i);  +  background(0); 
-  vertex(50+i, 150+random(-3,3));  +  stroke(255); 
-  vertex(150+random(-3,3), 150-i);  +  strokeWeight(5); 
-  vertex(150-i, 50+random(-3,3));+  beginShape(POINTS); 
 +  for (let i = 0; i < 100; i = i + 10) { 
 +    vertex(50 + random(-3, 3), 50 + i); 
 +    vertex(50 + i, 150 + random(-3, 3)); 
 +    vertex(150 + random(-3, 3), 150 - i); 
 +    vertex(150 - i, 50 + random(-3, 3)); 
 +  } 
 +  endShape(CLOSE);
 } }
-endShape(CLOSE);  
 </file> </file>
  
  • /home/users/2/lolipop.jp-4404d470cd64c603/web/ws/data/pages/lecture/design_with_prototyping/p5.js編/10デジタルキュビズム.txt
  • 最終更新: 2021/03/02 21:56
  • by baba