1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-27 02:05:34 +02:00

intersections

This commit is contained in:
Pomax
2020-08-29 08:40:36 -07:00
parent 4e34774afb
commit bdc7c4228d
13 changed files with 201 additions and 89 deletions

View File

@@ -128,8 +128,8 @@ class GraphicsAPI extends BaseAPI {
if (points) this.setMovable(points);
}
setMovable(points) {
points.forEach((p) => this.movable.push(p));
setMovable(...allpoints) {
allpoints.forEach((points) => points.forEach((p) => this.movable.push(p)));
}
/**
@@ -318,6 +318,22 @@ class GraphicsAPI extends BaseAPI {
this.setStroke(false);
}
/**
* stroke + fill
*/
setColor(color) {
this.setFill(color);
this.setStroke(color);
}
/**
* no stroke/fill
*/
noColor() {
this.noFill();
this.noStroke();
}
/**
* Set a text stroke/color
*/