On Fri, 07 Jan 2011 18:30:15 -0000, Gycoder <[email protected]> wrote:

But, I'm having a little trouble handling the coloring of the
drawings  was painted  in the picture. The basic shapes such as
circle, oval... after they are drawn down in the form of contour, but
then somebody want to fill up, how to refer to them by script?

It's impossible by design.

If you need things like this, you probably should be using SVG, not canvas.

SVG gives you references to objects and lets you easily define their fill, stroke, etc.

canvas is just a bunch of pixels, which is a huge advantage for pixel-based drawing algorithms, but when you need objects you have to reinvent your own "SVG" that clears and redraws canvas every time something changes.

--
regards, porneL

--
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to