xxxxxxxxxx
15
function setup() {
createCanvas(100,100,WEBGL);
}
function draw() {
background(250, 250, 150); // 背景を青色に設定
fill(15, 195, 185);// 塗りつぶし色を緑色に設定
noStroke() ;
sphere(30);
erase() ; // 差し引き(くり抜き)を設定
rotateY(frameCount * 0.02); // Y軸を中心に回転
translate(0, 0, 40);
torus(15,5); // トーラス(ドーナッツ形状)で差し引き
noErase() ;
}