earlygrey / shapedrawer

A library for libGDX that draws simple shapes using a batch.
MIT License
187 stars 31 forks source link

[Feature request] Filled sectors #10

Closed payne911 closed 5 years ago

payne911 commented 5 years ago

As it is, sectors will be completely filled, from their center, all the way up their radius. It would be very cool if one could input an "inner radius" which basically dictates how far from the center should the drawing begin from.

To have a bit more of a visualization in your head, think of a circle, with an empty hole right in its middle. Imagine all the doughnuts the LibGDX community could benefit from!!

payne911 commented 5 years ago

I did not realize you could use an arc and place it right in the middle of the region that should be drawn. The lineWidth argument is then used to expand in both directions (inward and outward) the fill.

payne911 commented 5 years ago

As described in https://github.com/earlygrey/shapedrawer/issues/11, the "solution" mentioned above is actually "buggy" and so this remains a feature request.

earlygrey commented 5 years ago

There's no need to have two issues for this, the feature is there, it just needs some adjustements and can be managed in the other issue.