asdf-games/lib/Line.js
2020-08-04 15:07:48 +02:00

9 lines
186 B
JavaScript

class Line {
constructor(x1, y1, x2, y2, style = "#000000") {
this.pos = { x: x1, y: y1 };
this.target = { x: x2, y: y2 };
this.style = style;
}
}
module.exports = Line;