</script> <script type="application/processing" data-processing-target="myCanvas"> // キャンバスのサイズ size(320, 320); // 円を描く // ellipse(x, y, w, h) ellipse(100, 100, 100, 50); noFill(); // 座標指定の設定 // ellipse(中心のx座標, 中心のy座標, 横直径, 縦直径) デフォルトの値 ellipseMode(CENTER); ellipse(200, 150, 50, 50); // ellipse(中心のx座標, 中心のy座標, 横半径, 縦半径) ellipseMode(RADIUS); ellipse(200, 150, 50, 50); // ellipse(ボックス左上頂点のx座標, ボックスの左上頂点のy座標, 横直径, 縦直径) ellipseMode(CORNER); ellipse(100, 200, 100, 100); // ellipse(ボックスの左上頂点のx座標, ボックスの左上頂点のy座標, ボックスの右下頂点のx座標, ボックスの右下頂点のy座標) ellipseMode(CORNERS); ellipse(0, 200, 100, 300);