G
G
Greendq2011-11-16 00:28:34
Canvas
Greendq, 2011-11-16 00:28:34

HTML5 canvas draw images

Hello, dear habrazhitel!

And no one will throw a link to the dock/examples how can you draw different copies of (scaled) drawings (usual small png files) at different points in the canvas based on user actions?

In all examples, only the drawing in the onload () method of the picture object itself is shown, and I need to load, say, 10 different pictures, and then draw them where the user clicks with the mouse, for example.

I'm not interested in the solution of this particular problem, but in the examples / dock that would allow me to implement this. The context is, of course, two-dimensional.

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jamayka, 2011-11-17
@Greendq

jsfiddle.net/aa4kS/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question