limweb / degrafa

Automatically exported from code.google.com/p/degrafa
1 stars 0 forks source link

Negative widths and heights cause unexpected results on RegularRectangle #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
<degrafa:Surface>
    <degrafa:fills>
             <degrafa:SolidFill id="solidFill" color="0xFF9100"/>
    </degrafa:fills>
    <degrafa:GeometryGroup>
        <degrafa:RegularRectangle y="19" fill="{solidFill}"  width="-100" height="100"/>
     </degrafa:GeometryGroup> 
</degrafa:Surface>

If draw in AS...

graphics.drawRect( 0, 0, -100, 100 )

...you would get a rectangle with the left side at -100 and the right side at 
0. Degrafa instead 
creates a rather beautiful shape ;)

This may be the case for other Rectangles/Shapes in the framework but I haven't 
tested them.

Original issue reported on code.google.com by sdo...@gmail.com on 28 Aug 2008 at 11:32