1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-28 10:40:52 +02:00

image regeneration + circles

This commit is contained in:
Pomax
2020-09-05 14:01:36 -07:00
parent 7e5c6e2eba
commit bec07e3297
268 changed files with 51976 additions and 620 deletions

View File

@@ -514,9 +514,11 @@ class GraphicsAPI extends BaseAPI {
/**
* Draw a circular arc
*/
arc(x, y, r, s, e) {
arc(x, y, r, s, e, cx = false, cy = false) {
this.ctx.beginPath();
if (cx !== false && cy != false) this.ctx.moveTo(cx, cy);
this.ctx.arc(x, y, r, s, e);
if (cx !== false && cy != false) this.ctx.moveTo(cx, cy);
this.ctx.fill();
this.ctx.stroke();
}