summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/luatikz/example/recta.lua
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/contrib/luatikz/example/recta.lua')
-rw-r--r--graphics/pgf/contrib/luatikz/example/recta.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/pgf/contrib/luatikz/example/recta.lua b/graphics/pgf/contrib/luatikz/example/recta.lua
new file mode 100644
index 0000000000..91c8203ef7
--- /dev/null
+++ b/graphics/pgf/contrib/luatikz/example/recta.lua
@@ -0,0 +1,21 @@
+tikz.within( '*' )
+
+local r1 =
+ rect{
+ pnw = p{ 0, 3 },
+ pse = p{ 3, 0 },
+ }
+
+local r2 =
+ rect{
+ psw = r1.pse,
+ size = p{ 1, 1 },
+ }
+
+local r3 =
+ rect{
+ pc = r1.pc,
+ size = p{ 1.5, 1.5 },
+ }
+
+draw{ r1, r2, r3 }