summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/luatikz/example/linea.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/luatikz/example/linea.lua')
-rw-r--r--Master/texmf-dist/doc/latex/luatikz/example/linea.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/luatikz/example/linea.lua b/Master/texmf-dist/doc/latex/luatikz/example/linea.lua
new file mode 100644
index 00000000000..fcc4a78989e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/luatikz/example/linea.lua
@@ -0,0 +1,7 @@
+tikz.within( '*' )
+
+local l1 = line{ p{ 0, 0 }, p{ 2, 3 } }
+local l2 = line{ p1 = p{ 0, 3 }, p2 = p{ 2, 1 } }
+
+draw{ l1 }
+draw{ l2 }