|
@@ -2,7 +2,7 @@
|
|
|
* Class representing a circular (cilindrical in 3D) workpiece.
|
|
|
*/
|
|
|
export class Workpiece {
|
|
|
- constructor(x, y, color = "unknown", diameter = 25) {
|
|
|
+ constructor(x, y, color = "NONE", diameter = 25) {
|
|
|
this.x = x;
|
|
|
this.y = y;
|
|
|
this.color = color;
|
|
@@ -10,7 +10,7 @@ export class Workpiece {
|
|
|
}
|
|
|
|
|
|
draw() {
|
|
|
- if (this.color === "unknown") {
|
|
|
+ if (this.color === "NONE") {
|
|
|
fill('rebeccapurple');
|
|
|
ellipse(this.x, this.y, this.d, this.d);
|
|
|
fill(255);
|