Fix image bounds offset
This commit is contained in:
parent
6ce3b78207
commit
bc7afbd59f
@ -62,7 +62,7 @@
|
||||
for (let j = 0; j < data.x_axis; j++) {
|
||||
const c = "000000" + Math.floor(data.map[i][j]).toString(16);
|
||||
ctx.fillStyle = "#" + c.substring(c.length - 6);
|
||||
ctx.fillRect(data.x_axis - j, data.z_axis - i, 1, 1);
|
||||
ctx.fillRect(data.x_axis - j - 1, data.z_axis - i - 1, 1, 1);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user