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 -- arc_pattern = _G_Patterns_.BORDER_FG
-- } -- }
return _G_Widget_.Arc( return _G_Widget_.Arc(
x, _G_Widget_.make_semicircle(
y, _G_Widget_.make_point(x, y),
r, r,
0, 0,
360, 360
),
2, 2,
_G_Patterns_.BORDER_FG _G_Patterns_.BORDER_FG
) )

View File

@ -84,13 +84,14 @@ local dial = _G_Widget_.Dial(
-- arc_pattern = _G_Patterns_.INDICATOR_FG_SECONDARY -- arc_pattern = _G_Patterns_.INDICATOR_FG_SECONDARY
-- } -- }
local cache_arc = _G_Widget_.Arc( local cache_arc = _G_Widget_.Arc(
DIAL_X, _G_Widget_.make_semicircle(
DIAL_Y, _G_Widget_.make_point(DIAL_X, DIAL_Y),
DIAL_RADIUS, DIAL_RADIUS,
90, 90,
360, 360
_DIAL_THICKNESS_, ),
_G_Patterns_.INDICATOR_FG_SECONDARY _DIAL_THICKNESS_,
_G_Patterns_.INDICATOR_FG_SECONDARY
) )
local text_ring = Common.initTextRing( local text_ring = Common.initTextRing(