This blog isn't maintained anymore. Check out my current project, an agile/scrum management tool.

Friday, March 14, 2008

Degrafa + ObjectHandles

Here's a neat little experiment I did with combining Degrafa  and ObjectHandles.  (View-source is enabled for the example.)

It lets you move and resize shapes drawn with Degrafa by using the ObjectHandles stuff.  It was amazingly simple to make this work, essentially just something like:


<oh:ObjectHandle id="myHandle">
  <degrafa:Surface left="0" top="0">                                  
  <degrafa:fills>             
    <degrafa:SolidFill id="aqua" colorKey="aqua"/>                     
  </degrafa:fills>                  
  <degrafa:GeometryGroup>             
    <degrafa:Elipse width="{myHandle.width}" height="{myHandle.height}}" fill="{aqua}" radius="20"/>                    
  </degrafa:GeometryGroup>              
</degrafa:Surface>
</oh:ObjectHandle>


I bet it'd be amazingly simple to make some sort of impressive drawing or charting application with this.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home