int eSize = 0; //オブジェクトのサイズ int x = 0; //オブジェクトのx座標 int y = 0; void setup() { size(400, 400); noStroke(); //輪郭を描かない fill(0); //オブジェクトは黒 } void draw() { background(255); // 軌跡を残す場合は、下の3行をON、backgoundをOFFにする /* fill(255, 50); //透明度のあるrectを描画 rect(0, 0, width, height); fill(0); //オブジェクトは黒 */ ellipse(mouseX, mouseY, y, y); //円を描く } void mousePressed(){ x = mouseX; y = mouseY; }