aboutsummaryrefslogtreecommitdiff
path: root/share/library/Passive/inductor.lua
diff options
context:
space:
mode:
Diffstat (limited to 'share/library/Passive/inductor.lua')
-rw-r--r--share/library/Passive/inductor.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/share/library/Passive/inductor.lua b/share/library/Passive/inductor.lua
index b63a8f5..34a1cda 100644
--- a/share/library/Passive/inductor.lua
+++ b/share/library/Passive/inductor.lua
@@ -26,22 +26,22 @@ local terminals = {{-2, 0}, {2, 0}}
-- Rendering
local render = function (cr)
-- The arcs
- cr.arc (-1.5, 0, 0.5, math.pi, 0)
- cr.arc (-0.5, 0, 0.5, math.pi, 0)
- cr.arc (0.5, 0, 0.5, math.pi, 0)
- cr.arc (1.5, 0, 0.5, math.pi, 0)
+ cr:arc (-1.5, 0, 0.5, math.pi, 0)
+ cr:arc (-0.5, 0, 0.5, math.pi, 0)
+ cr:arc (0.5, 0, 0.5, math.pi, 0)
+ cr:arc (1.5, 0, 0.5, math.pi, 0)
- cr.stroke ()
+ cr:stroke ()
end
local render_core = function (cr)
render (cr)
-- The core
- cr.move_to (-2, -1)
- cr.line_to (2, -1)
+ cr:move_to (-2, -1)
+ cr:line_to (2, -1)
- cr.stroke ()
+ cr:stroke ()
end
-- Register the symbols