New coords for [koeri]
This commit is contained in:
parent
d625af94c1
commit
4db3bdbc66
@ -86,8 +86,8 @@ function drawGrid() {
|
|||||||
|
|
||||||
function mousePos(evt) {
|
function mousePos(evt) {
|
||||||
var rect = cvs.getBoundingClientRect();
|
var rect = cvs.getBoundingClientRect();
|
||||||
var x = parseInt((evt.clientX - rect.left)/10) + 1419;
|
var x = parseInt((evt.clientX - rect.left)/10) + 1936;
|
||||||
var y = parseInt((evt.clientY - rect.top)/10) + 1172;
|
var y = parseInt((evt.clientY - rect.top)/10) + 1149;
|
||||||
var p = ctx.getImageData(x, y, 1, 1).data;
|
var p = ctx.getImageData(x, y, 1, 1).data;
|
||||||
results.innerHTML = '<table style="width:100%;table-layout:fixed"><td>X: '
|
results.innerHTML = '<table style="width:100%;table-layout:fixed"><td>X: '
|
||||||
+ x + '</td><td>Y: ' + y + '</td></table>';
|
+ x + '</td><td>Y: ' + y + '</td></table>';
|
||||||
|
Loading…
Reference in New Issue
Block a user