1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

OutlineOval improvement

This commit is contained in:
Brian Fiete 2025-04-07 15:08:50 -04:00
parent 0286570c1e
commit c3ad1b9ed1

View file

@ -1038,7 +1038,7 @@ namespace Beefy.gfx
public void OutlineOval(float x, float y, float radiusX, float radiusY) public void OutlineOval(float x, float y, float radiusX, float radiusY)
{ {
int numSections = 40; int numSections = 12 + (.)((radiusX + radiusY) * 0.15f);
for (int section < numSections) for (int section < numSections)
{ {
float ang0 = (section * Math.PI_f * 2) / numSections; float ang0 = (section * Math.PI_f * 2) / numSections;