summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/luatikz/example/lined.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-12-09 21:18:16 +0000
committerKarl Berry <karl@freefriends.org>2024-12-09 21:18:16 +0000
commitbd01b8f1508b38fabf50da4ad8fbac6497697ba5 (patch)
tree515068e80d87595ecb606d7dbb3d4003b00407ed /Master/texmf-dist/doc/latex/luatikz/example/lined.lua
parente4c71587aa7865ccd8d4c83a4daf3d1b04c6da6c (diff)
luatikz (9dec24)
git-svn-id: svn://tug.org/texlive/trunk@73087 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/luatikz/example/lined.lua')
-rw-r--r--Master/texmf-dist/doc/latex/luatikz/example/lined.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/luatikz/example/lined.lua b/Master/texmf-dist/doc/latex/luatikz/example/lined.lua
new file mode 100644
index 00000000000..38bc0eaa081
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/luatikz/example/lined.lua
@@ -0,0 +1,15 @@
+tikz.within( '*' )
+
+local l = line{ p{ 0, 0 }, p{ 5, 0 } }
+draw{ l }
+
+for i = 1, 10
+do
+ l =
+ line{
+ p1 = l.p2,
+ phi = l.phi + math.pi / 5,
+ length = l.length * 2 / 3,
+ }
+ draw{ l }
+end