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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user