nigaoe

by 吉澤凜

2024-05-07 16:44:16

sketch.js

function setup() {
  createCanvas(600, 600); //ウィンドウサイズの指定
  background(20, 170, 200); //背景色を指定して1回だけ塗る。

  fill(200, 100, 120);
  noStroke();
  circle(300, 230, 600);

  fill(20, 170, 200);
  ellipse(300, 230, 410, 620);

  fill(200, 100, 120);
  noStroke();
  rect(0, 0, 600, 220);
  rect(0, 0, 70, 600);
  rect(530, 0, 70, 600);
  circle(380, 470, 7);

  noStroke();
  fill(200, 100, 120);
  circle(150, 300, 100);
  circle(450, 300, 100);

  rect(400, 250, 100, 50);
  rect(100, 250, 100, 50);

  stroke(255, 255, 255);
  noFill();

  ellipse(300, 430, 150, 100);
  arc(300, 400, 100, 50, 6.1, 3.3);
}

function draw() {
  // background(0, 0, 0); //背景色を指定して1回だけ塗る。
}

function mousePressed() {
  //マウスのボタンが押し下げられた時の処理
}

function mouseReleased() {
  //マウスのボタンが離された時の処理
}

function keyPressed() {
  if (key == "s") {
    saveCanvas();
  }
}

ファイル一覧

  • index.html
  • p5.min.js
  • p5.sound.min.js
  • sketch.js
  • style.css

ファイルを再アップロード


サムネイル画像を変更