Coffeehouse Post

Single Post Permalink

View Thread: Getting images created in a Canvas context to respond to an event
  • ZippyV

    , cbae wrote

    Why use a canvas? Why not use an img element and move it around with JavaScript?

    Indeed, when you put something on a canvas it becomes part of the canvas. No more css or onclick events. Just use a div as container with "position: relative;" and put img element in there with "position: absolute;"