yes, i meant this
but if this is correct, you have to substract the panel position from your mouse position:

var texX = mouse_pos.x - hitMap.pos_x;
var texY = mouse_pos.y - hitMap.pos_y;

then you have valid texture coordinates to get the pixel from


Visit my site: www.masterq32.de