sketch.js
function setup() {
createCanvas(600, 600); //ウィンドウサイズの指定
background(255, 200, 0); //背景色を指定して1回だけ塗る。
stroke(33,146,110);//線の色を指定
fill(250,224,45);
noStroke();
circle(130,250,250);
circle(400,250,250);
noFill();
stroke(223,56,76);
stroke(223,56,250);
bezier(25,400,259,479,32,435,500,350,400);
fill(0,0,0);
noStroke();
circle(130,250,120);
circle(400,250,120);
}
function draw() {
// background(0, 0, 0); //背景色を指定して1回だけ塗る。
}
function mousePressed() {
//マウスのボタンが押し下げられた時の処理
}
function mouseReleased() {
//マウスのボタンが離された時の処理
}
function keyPressed() {
if (key == "s") {
saveCanvas();
}
}