Hit detection on non-transparent pixel

Posted by Abie on Stack Overflow See other posts from Stack Overflow or by Abie
Published on 2010-05-20T23:07:22Z Indexed on 2010/05/20 23:10 UTC
Read the original article Hit count: 255

Filed under:
|
|

Given a PNG in a web context with some transparent pixels and some non-transparent pixels, is there a way in Javascript to determine if a user has clicked on a non-transparent pixel? A webkit-only solution would be perfectly acceptable.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about webkit