drawing shapes on a canvas when the user clicks

This commit is contained in:
Gavin McDonald
2016-02-17 10:32:14 -05:00
commit f7cb7c094a
18 changed files with 1665 additions and 0 deletions

15
src/point.js Normal file
View File

@@ -0,0 +1,15 @@
export default class Point {
constructor(newX, newY) {
this.x = newX;
this.y = newY;
}
getX() { return this.x; }
getY() { return this.y; }
setX(newX) { this.x = newX; }
setY(newY) { this.y = newY; }
getPoint() { return {x: this.x, y: this.y}; }
};