Open IonSwitz opened 10 years ago
This has now been fully committed to the StarlingGraphics master fork. Still not available in the SWC.
I am trying to take this one step further, implementing as good support as I can for the
flash.display.Shape.readGraphicsData API to allow for code like:
starlingShapeEx.graphics.drawGraphicsData(flashShape.graphics.readGraphicsData());
I want to keep the drawGraphicsData API in the ShapeEX class, as it requires the import of flash.display-classes, something that previously wasn't needed to use the starling.display.Shape API.
If @jonathanrpace would care to comment before I continue, I'd be very happy :)
Clean up has been committed to Master. See https://github.com/StarlingGraphics/Starling-Extension-Graphics/issues/79
I spent some time tonight to start implementing the drawPath() and drawGraphicsData() APIs from flash.display.Graphics
I got some rudimentary things running, allowing for code like:
and I have also added support for the GraphicsEx API, adding a GraphicsNaturalSpline class. It behaves a bit differently than the other primitives, so I didn't want to build it into the GraphicsPath class, but it can be added by using a ShapeEx instead of a Shape and pushing new GraphicsNaturalSpline objects into the vector.
Let me know what you think.