瀏覽代碼

OutlineOval improvement

Brian Fiete 5 月之前
父節點
當前提交
c3ad1b9ed1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      BeefLibs/Beefy2D/src/gfx/Graphics.bf

+ 1 - 1
BeefLibs/Beefy2D/src/gfx/Graphics.bf

@@ -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;