« Fireblue? Bluefox? | Main | W3Schools »

May 20, 2005

A SVG/XBL Paint App Demo

A SVG/XBL Paint App Demo

I rewrote it since I last blogged about it, though the code is still messy. On top of moving/resizing, you can now change colors/borders as well as add new boxes/triangles. Just click on the "toolbar" and draw a new one in the drawing area.

I also started a "layer" like area that shows a thumbnail for each shape in the drawing area.

Obviously requires a Mozilla/Firefox trunk build with SVG enabled via preferences.

A quick SVG rant:

Every other W3C spec pretty much uses "length" to get, well, the length of a list. Natrually, SVG uses "numberOfItems" for SVGPointList.

Posted by doron at May 20, 2005 01:17 PM

Comments

"Natrually, SVG uses "numberOfItems" for SVGPointList."

Why'd they do this?

Posted by: hemebond at May 20, 2005 04:51 PM

Probably because "length" also has a geometric interpretation. It might mean, for example, the distance between the first point and the last point. NumberOfItems is unambiguous.

Posted by: Ami Ganguli at May 21, 2005 12:27 AM

Wow... I can see... "IllustZilla" coming soon. :-P

Posted by: minghong at May 21, 2005 02:16 AM

I wonder, might the use of "numberOfItems" be to avoid confusion with lengths of paths, etc...

Posted by: DaveB at May 21, 2005 02:52 AM