プロフィール

by Matsu

2025-05-21 01:56:54

sketch.js

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

  noStroke();
  fill(150, 200, 0);
  rect(500, 0, 600);

  noStroke();
  fill(200, 200, 200);
  ellipse(375, 250, 220, 87);

  stroke(0, 40, 250);
  strokeWeight(6);
  fill(50, 150, 350);
  circle(430, 240, 100);

  stroke(0, 300, 130);
  strokeWeight(7);
  fill(200, 0, 100);
  circle(430, 240, 70);

  stroke(0, 30, 300);
  strokeWeight(5);
  fill(0, 0, 0);
  circle(430, 240, 40);

  fill(100, 0, 20);
  stroke(100, 150, 130);
  strokeWeight(16);
  bezier(530, 200, 480, 250, 430, 70, 250, 260);

  noStroke();
  fill(100, 100, 100);
  rect(150, 300, 10, 210);
}

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

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


サムネイル画像を変更