I have a grid (on an image) with straight and diagonal lines similar to the following:
___________________________
____/____/____/____/____/__
___/____/____/____/____/___
__/____/____/____/____/____
_/____/____/____/____/____/
/____/____/____/____/____/_
That grid is inside a DIV with a fixed size, and the issue is that I need to get the coordinate in pixels (or others) to be able to calculate in which box the click has been made (I know how to do this last one) .
As I mentioned, the grid is on an image, and the image is on top of a live camera, so no onclick
.
I don't know if it's what you need but it can help you get some ideas:
And in a painting it could be like this
: