Lejla Hatipovic
Lejla Hatipovic

Reputation: 45

starling framework - how to draw cirlcles

i was able to integrate starling in my flashdevelop enviroment and Im able to create quads with the built in Quad class.

Now I need to create circles.

How do I create circles with code?

Mirza

Upvotes: 1

Views: 2674

Answers (2)

timwjohn
timwjohn

Reputation: 377

There is now the starling.display.Canvas class which provides support for basic vector drawing, including circles.

Upvotes: 0

prototypical
prototypical

Reputation: 6751

I believe that Starling doesn't have a Drawing API by default, but you can check out this drawing API :

https://github.com/StarlingGraphics/Starling-Extension-Graphics

There are likely other extensions to add the same functionality.

Edit : -- Please also see the first comment by @jpop under the question as if you don't need to redraw the graphics often, it's an excellent solution that doesn't require the extension.

Upvotes: 4

Related Questions