Refactor Maps (#2)
This commit is contained in:
@@ -9,7 +9,7 @@ export default class DrawSquare {
|
||||
this.diamondY = [0, -sqrt2, 0, sqrt2];
|
||||
}
|
||||
|
||||
filled(context, scale, x, y, cell) {
|
||||
fill(context, scale, x, y, cell) {
|
||||
scale = scale * cell.scale;
|
||||
let squareCornerX = cell.orientation === POINTY ? this.diamondX : this.squareX;
|
||||
let squareCornerY = cell.orientation === POINTY ? this.diamondY : this.squareY;
|
||||
|
||||
Reference in New Issue
Block a user