summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/luatikz/example/nodeb.lua
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/contrib/luatikz/example/nodeb.lua')
-rw-r--r--graphics/pgf/contrib/luatikz/example/nodeb.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/pgf/contrib/luatikz/example/nodeb.lua b/graphics/pgf/contrib/luatikz/example/nodeb.lua
new file mode 100644
index 0000000000..85d8aeb49e
--- /dev/null
+++ b/graphics/pgf/contrib/luatikz/example/nodeb.lua
@@ -0,0 +1,18 @@
+tikz.within( '*' )
+
+local r1 =
+ rect{
+ pc = p{ 0, 0 },
+ size = p{ 3, 3 },
+ }
+
+draw{ r1 }
+
+put{
+ node{
+ at = r1.pc,
+ text = [[this is the center of a rect]],
+ text_width = '2cm',
+ rotate = 45,
+ },
+}