From 5a50e4897794b109c63f39155a19d1263b842d31 Mon Sep 17 00:00:00 2001
From: Aada
Date: Sun, 16 Jun 2024 21:14:11 +0200
Subject: Add drawing

---
 shape.tex | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 shape.tex

(limited to 'shape.tex')

diff --git a/shape.tex b/shape.tex
new file mode 100644
index 0000000..def5008
--- /dev/null
+++ b/shape.tex
@@ -0,0 +1,55 @@
+\documentclass[tikz]{standalone}
+
+\usetikzlibrary{positioning}
+
+\input{shapes.tex}
+
+%  \tikzset{
+%   shape example/.style= {
+%     color = black!30,
+%     draw,
+%     fill = yellow!30,
+%     line width = .5cm,
+%     % inner xsep = 2.5cm,
+%     % inner ysep = 0.5cm,
+%     rounded corners=2cm,
+%   }
+% }
+
+
+\begin{document}
+\begin{tikzpicture}
+  \node[stop1, name=one] {};%{Stop\vrule width 1pt height 2cm};
+  \node[stop2, name=two, below=4.5cm of one.west, anchor=west] {};
+  \node[stop3, name=three, below=4.5cm of two.west, anchor=west] {};
+  \node[stop4, name=four, below=4.5cm of three.west, anchor=west] {};
+  \draw[gray, thin]
+    (one.center) -- (two.one half) -- (three.one half) -- (four.one half)
+    (two.two half) -- (three.center) -- (four.two quarter)
+    (three.two half) -- (four.three quarter)
+  ;
+  \foreach\shape in {one,two,three,four} {
+    \foreach\anchor/\placement in {%
+      % Custom anchors
+      one half/below,
+      two half/below,
+      two quarter/above,
+      three quarter/above,
+      south one half/left,
+      south two half/right,
+      south two quarter/below left,
+      south three quarter/below right,
+      north one half/left,
+      north two half/right,
+      north two quarter/above left,
+      north three quarter/above right,
+      % Standard anchors
+      south/below, 
+      north/above, 
+      west/left, 
+      east/right, 
+      center/above%
+    } \draw[shift=(\shape.\anchor)] plot[mark=x] coordinates{(0, 0)} node[\placement] {\tiny\texttt{(\shape.\anchor)}};
+  }
+\end{tikzpicture}
+\end{document}
-- 
cgit v1.2.3

