diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-07 10:52:02 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-07 13:53:49 +0100 |
commit | 00d9072c5b1a998c25b574e9694da32be3fb8222 (patch) | |
tree | 63df42fb89035249f3b98d7d1b44dd0fd0591398 /share/library/Misc/ground.lua | |
parent | 1277b6eaaffc08076f9d9440693f201fb61072e3 (diff) | |
download | logdiag-00d9072c5b1a998c25b574e9694da32be3fb8222.tar.gz logdiag-00d9072c5b1a998c25b574e9694da32be3fb8222.tar.xz logdiag-00d9072c5b1a998c25b574e9694da32be3fb8222.zip |
Add some miscellaneous symbols.
Diffstat (limited to 'share/library/Misc/ground.lua')
-rw-r--r-- | share/library/Misc/ground.lua | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/share/library/Misc/ground.lua b/share/library/Misc/ground.lua new file mode 100644 index 0000000..fdcf593 --- /dev/null +++ b/share/library/Misc/ground.lua @@ -0,0 +1,36 @@ +-- Symbol name +names = +{ + en = "Ground", + cs = "Zem" +} + +-- Render area in base units (X1, Y1, X2, Y2) +area = {-1, -1, 1, 2} + +-- Terminals +terminals = {{0, -1}} + +-- Rendering +render = function (cr) + -- The vertical line + cr.move_to (0, -1) + cr.line_to (0, 0.5) + + -- The horizontal lines + cr.move_to (-1, 0.5) + cr.line_to (1, 0.5) + + cr.move_to (-0.75, 1.1) + cr.line_to (0.75, 1.1) + + cr.move_to (-0.5, 1.7) + cr.line_to (0.5, 1.7) + + cr.stroke () +end + +-- Register the symbol +logdiag.register ("Ground", names, area, terminals, render) + + |