円を描画します。
円はx、y、dパラメータで定義される丸い形状です。 xとyは円の中心の位置を設定します。 dは円の幅と高さ(直径)を設定します。 円の縁上のすべての点は、中心から同じ距離0.5 * dにあります。 0.5 * d(直径の半分)が円の半径です。 位置を設定する他の方法については、ellipseMode()を参照してください。
実例
シンタックス
circle(x, y, d)
パラメーター
x
Number:
円の中心のx座標。
y
Number:
円の中心のy座標。
d
Number:
円の直径。
This page is generated from the comments in src/core/shape/2d_primitives.js . Please feel free to edit it and submit a pull request!