I'm using the fantastic Starling framework for quite a while now, and i came to the conclusion that it's always better to ask the professionals about best practices for doing certain tasks than to try every possible way out on my own. I'm pretty sure my questions can be answered by these pros in a matter of minutes, so I'll just give it a try here
What I want to do is to draw a donut wrench (an arc with an inner and outer radius) and animate its progress from 0 to 360 degrees using the Starling graphics extension. I've found enough code snippets about the actual algorithm of drawing the wrench itself, this thread is all not about this but some general techniques in Starling.
So there are my questions about this:
- What is the best (performing) way to update a Shape every frame? I've read something about RenderTextures, but my experience here is zero.
- How can parts of a Shape be erased with another Shape? I need this for creating the hole in the middle and also for some other masking issues. Also read something about BlendMode.ERASE, but again, zero experience.
Any help would be greatly appreciated!