MCPcopy
hub / github.com/mudler/LocalAI / draw

Method draw

core/http/static/p2panimation.js:47–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 }
46
47 draw() {
48 ctx.beginPath();
49 ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2, false);
50 ctx.fillStyle = this.color;
51 ctx.fill();
52 }
53
54 isMouseOver(mouseX, mouseY) {
55 // Increase the draggable area by checking if the mouse is within a larger radius

Callers 1

animateFunction · 0.45

Calls 2

arcMethod · 0.80
fillMethod · 0.45

Tested by

no test coverage detected