MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / drawEllipse

Method drawEllipse

src/scripting/api/Display/Graphics.ts:155–159  ·  view source on GitHub ↗

* Draws an ellipse * @param {number} cx - center x * @param {number} cy - center y * @param {number} w - width * @param {number} h - height

(cx:number, cy:number, w:number, h:number)

Source from the content-addressed store, hash-verified

153 * @param {number} h - height
154 */
155 public drawEllipse(cx:number, cy:number, w:number, h:number):void {
156 this._evaluateBoundingBox(cx - w/2,cy - h/2);
157 this._evaluateBoundingBox(cx + w/2,cy + h/2);
158 this._callDrawMethod('drawEllipse', [cx + w / 2, cy + h / 2, w / 2, h / 2]);
159 }
160
161 /**
162 * Draws a rounded rectangle

Callers

nothing calls this directly

Calls 2

_evaluateBoundingBoxMethod · 0.95
_callDrawMethodMethod · 0.95

Tested by

no test coverage detected