From 7fb4c6f7865618fe72b434865361c047fc098041 Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sun, 22 Jan 2023 10:04:29 +0100 Subject: [PATCH 1/2] graphics_utils - Set a default step allowing a full circle arc --- modules/graphics_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/graphics_utils.js b/modules/graphics_utils.js index 5c08188bc..ca2c0fb76 100644 --- a/modules/graphics_utils.js +++ b/modules/graphics_utils.js @@ -1,6 +1,6 @@ // draw an arc between radii minR and maxR, and between angles minAngle and maxAngle centered at X,Y. All angles are radians. exports.fillArc = function(graphics, X, Y, minR, maxR, minAngle, maxAngle, stepAngle) { - var step = stepAngle || 0.2; + var step = stepAngle || 0.21; var angle = minAngle; var inside = []; var outside = []; From bf5c44c92200dd6993acc71512b69d74a9e95fe1 Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sun, 22 Jan 2023 10:05:21 +0100 Subject: [PATCH 2/2] graphics_utils - Use correct parameter variable --- modules/graphics_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/graphics_utils.js b/modules/graphics_utils.js index ca2c0fb76..f573cf0cf 100644 --- a/modules/graphics_utils.js +++ b/modules/graphics_utils.js @@ -31,5 +31,5 @@ exports.degreesToRadians = function(degrees){ } exports.radiansToDegrees = function(radians){ - return 180/Math.PI * degrees; + return 180/Math.PI * radians; } \ No newline at end of file