logdiag/share/library/Misc/junction.lua

28 lines
435 B
Lua
Raw Normal View History

2011-02-15 18:04:31 +01:00
-- Symbol name
local names =
{
en = "Junction",
2011-03-04 17:47:04 +01:00
cs = "Spoj",
2011-03-06 21:34:21 +01:00
sk = "Spoj",
2011-03-07 06:11:44 +01:00
pl = "Złącze",
de = "Anschluss"
2011-02-15 18:04:31 +01:00
}
-- Render area in base units (X1, Y1, X2, Y2)
local area = {-0.5, -0.5, 0.5, 0.5}
-- Terminal points
local terminals = {}
-- Rendering
local render = function (cr)
-- The disk
cr:arc (0, 0, 0.3, 0, math.pi * 2)
cr:fill ()
2011-02-15 18:04:31 +01:00
end
-- Register the symbol
logdiag.register ("Junction", names, area, terminals, render)