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

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン両方とも次のリビジョン
lecture:design_with_prototyping:p5.js編:10デジタルキュビズム [2021/02/28 11:34] – [Sample03] babalecture:design_with_prototyping:p5.js編:10デジタルキュビズム [2021/02/28 11:35] – [Sample04] baba
行 118: 行 118:
 ==== Sample04 ==== ==== Sample04 ====
 {{:lecture:design_with_prototyping:スクリーンショット_2018-10-16_15.58.36.png?nolink&200 |}} {{:lecture:design_with_prototyping:スクリーンショット_2018-10-16_15.58.36.png?nolink&200 |}}
-<file .pde 01_sample06.pde+<file .js sketch.js
-size(200, 200);     +function setup() { 
-background(0); +  createCanvas(200, 200); 
-stroke(255); +
-strokeWeight(1); + 
-beginShape(POINTS); +function draw() { 
-for ( int i = 0; i < 100; i=i+10 ) { +  background(0); 
-  vertex(50, 50+i);  +  stroke(255); 
-  vertex(50+i, 150);  +  strokeWeight(1); 
-  vertex(150, 150-i);  +  beginShape(POINTS); 
-  vertex(150-i, 50);+  for (let i = 0; i < 100; i = i + 10) { 
 +    vertex(50, 50 + i); 
 +    vertex(50 + i, 150); 
 +    vertex(150, 150 - i); 
 +    vertex(150 - i, 50); 
 +  } 
 +  endShape(CLOSE);
 } }
-endShape(CLOSE);  
 </file> </file>
 <WRAP clear/> <WRAP clear/>
  • /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