New coords for [koeri]

This commit is contained in:
Dominik Moritz Roth 2022-04-04 11:04:20 +02:00
parent d625af94c1
commit 4db3bdbc66

View File

@ -86,8 +86,8 @@ function drawGrid() {
function mousePos(evt) {
var rect = cvs.getBoundingClientRect();
var x = parseInt((evt.clientX - rect.left)/10) + 1419;
var y = parseInt((evt.clientY - rect.top)/10) + 1172;
var x = parseInt((evt.clientX - rect.left)/10) + 1936;
var y = parseInt((evt.clientY - rect.top)/10) + 1149;
var p = ctx.getImageData(x, y, 1, 1).data;
results.innerHTML = '<table style="width:100%;table-layout:fixed"><td>X: '
+ x + '</td><td>Y: ' + y + '</td></table>';