<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt">Hi list,<br>&nbsp;&nbsp;&nbsp; I got a new object class going:<br>[draw] - associate an svg drawing instruction with a [struct]<br><br>So far I've got rect, circle, polygon, polyline, and path supported with methods for all their basic drawing attributes (fill, fill-opacity, etc.)<br><br>Here's&nbsp; a demo with a well-known logo for Pd:<br>http://www.jonathanwilkes.net/pd.webm<br><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">The cool thing is that like the old parent widgets, you can associate any of the shape coordinates or attribute values with one of the struct's member fields like "yin" or "yang" as in the demo.</div><div style="color:
 rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div>Only thing that is a bit tricky: svg has some symbolic attributes, and with data structures there's no standard way to tell the difference between a symbol constant like "green" and a variable name like "x2color".&nbsp; Currently I'm just using floats to stand in for the symbol constants but that's rather ugly (especially for someone familiar with svg who has to look up that 2 = "bevel" in some table somewhere).<br><br>-Jonathan<br></div></body></html>