Thursday, August 31st, 2006
Embedded SVG in Protowidget
Terry Laurenzo has posted on Embedded SVG from his experience starting with the SVG example from Mozilla, and adapting Protowidget so that it could attach widgets to some SVG elements.
-
-
<svg xmlns="http://www.w3.org/2000/svg"
-
version="1.1" width="500" height="500"
-
baseProfile="full">
-
<g fill-opacity="0.7" stroke="black" stroke-width="0.1cm">
-
<circle cx="6cm" cy="2cm" r="100" fill="red"
-
transform="translate(0,50)"
-
pw:type=’Svg.SvgWidget’
-
pw:element.r=’#{`Jitter1`}’/>
-
<circle cx="6cm" cy="2cm" r="100" fill="blue"
-
transform="translate(70,150)"
-
pw:type=’Svg.SvgWidget’
-
pw:element.r=’#{`Jitter2`}’/>
-
<circle cx="6cm" cy="2cm" r="100" fill="green"
-
transform="translate(-70,150)"
-
pw:type=’Svg.SvgWidget’
-
pw:element.r=’#{`Jitter3`}’/>
-
</g>
-
</svg>
-
You can check out the test on an SVG enabled browser












Leave a comment