1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-25 17:42:46 +02:00

proof fixes

This commit is contained in:
Pomax
2020-08-22 10:38:10 -07:00
parent 557a931705
commit 8e2c6a4c51
5 changed files with 11 additions and 9 deletions

View File

@@ -101,7 +101,9 @@ class Bezier extends Original {
api.circle(p.x, p.y, 5);
if (labels) {
api.setFill(`black`);
api.text(`(${p.x},${p.y})`, p.x + 10, p.y + 10);
let x = p.x|0;
let y = p.y|0;
api.text(`(${x},${y})`, x + 10, y + 10);
}
});
ctx.restoreStyle();