この記事を書いた人

- クリエイティブコーダー / アーティスト
- 「人の心に寄り添う、機能するアート」を探究しています
- アートとテクノロジーが、社会や個人のウェルビーイングにどう貢献できるかに、関心があります
目次
作品の画像とコード

function setup() {
  createCanvas(500, 500);
  noLoop(); 
}
function draw() {
  background(255);
  stroke(0);
  strokeWeight(2);
  
  // ランダムな直線を描画
  for (let i = 0; i < 50; i++) {
    let x1 = random(width);
    let y1 = random(height);
    let x2 = random(width);
    let y2 = random(height);
    line(x1, y1, x2, y2);
  }
  
  // ランダムな円を描画
  for (let i = 0; i < 50; i++) {
    let x = random(width);
    let y = random(height);
    let d = random(10, 100);
    fill(random([0, 255]));
    ellipse(x, y, d, d);
  }
}作った感想
結構、気に入ってる作品です。
ランダムの線と円を組み合わせるだけで、面白い作品ができた。
 ワタタク
ワタタクそれでは今日もレッツワクワクコーディング。
