REF use semicircle for arc

This commit is contained in:
Nathan Dwarshuis 2021-07-09 22:53:03 -04:00
parent c683b68204
commit 4579bdb2f8
3 changed files with 15 additions and 13 deletions

2
core

@ -1 +1 @@
Subproject commit 63598c9257f2272808a98c6192276b18a9981ac9
Subproject commit bc8a4548e536c4a46e78712cfe6c578e85ab694b

View File

@ -246,11 +246,12 @@ M.initRing = function(x, y, r)
-- arc_pattern = _G_Patterns_.BORDER_FG
-- }
return _G_Widget_.Arc(
x,
y,
_G_Widget_.make_semicircle(
_G_Widget_.make_point(x, y),
r,
0,
360,
360
),
2,
_G_Patterns_.BORDER_FG
)

View File

@ -84,11 +84,12 @@ local dial = _G_Widget_.Dial(
-- arc_pattern = _G_Patterns_.INDICATOR_FG_SECONDARY
-- }
local cache_arc = _G_Widget_.Arc(
DIAL_X,
DIAL_Y,
_G_Widget_.make_semicircle(
_G_Widget_.make_point(DIAL_X, DIAL_Y),
DIAL_RADIUS,
90,
360,
360
),
_DIAL_THICKNESS_,
_G_Patterns_.INDICATOR_FG_SECONDARY
)