asdf-games/lib/Line.js

9 lines
178 B
JavaScript
Raw Permalink Normal View History

2020-08-04 15:07:48 +02:00
class Line {
constructor(x1, y1, x2, y2, style = "#000000") {
this.pos = { x: x1, y: y1 };
2020-08-11 18:07:09 +02:00
this.target = { x: x2, y: y2 };
2020-08-04 15:07:48 +02:00
this.style = style;
}
}
2020-08-11 18:07:09 +02:00
2020-08-04 15:07:48 +02:00
module.exports = Line;