diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-04-13 16:56:57 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-04-13 16:56:57 +0200 |
| commit | da012d103e520dc003a8d56c32414641beaa8e10 (patch) | |
| tree | f9e1e9dd2dfacbc481bf4491c4952a8440d8f6a4 /Info/9/3/Planet/algorithmik/while/while-flowchart.tikz | |
| parent | 94a4c6a4b6ad73c8cb10f418c561b2ad1b0975f9 (diff) | |
| download | unterricht-da012d103e520dc003a8d56c32414641beaa8e10.tar.gz unterricht-da012d103e520dc003a8d56c32414641beaa8e10.zip | |
initial planet commit
Diffstat (limited to 'Info/9/3/Planet/algorithmik/while/while-flowchart.tikz')
| -rw-r--r-- | Info/9/3/Planet/algorithmik/while/while-flowchart.tikz | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Info/9/3/Planet/algorithmik/while/while-flowchart.tikz b/Info/9/3/Planet/algorithmik/while/while-flowchart.tikz new file mode 100644 index 00000000..e11c711d --- /dev/null +++ b/Info/9/3/Planet/algorithmik/while/while-flowchart.tikz @@ -0,0 +1,40 @@ +\tikzset{ + process/.style={ + rectangle, + minimum width=2.5cm, minimum height=1cm, + draw, + text centered + }, + % Decision (diamond) + decision/.style={ + diamond, aspect=2, + minimum width=2.5cm, minimum height=1cm, + draw, + text centered + }, + % Input/Output (parallelogram) + io/.style={ + trapezium, trapezium left angle=70, trapezium right angle=110, + minimum width=2.5cm, minimum height=1cm, + draw, fill=green!20, + text centered + }, + % Arrow style + arrow/.style={ + thick, ->, >=Stealth + } +} + +\begin{tikzpicture} + \node (start) {}; + \node[decision, below=of start] (decision1) {\textcolor{magenta}{Bedingung}}; + \node[process, below=of decision1] (process2) {\textcolor{orange}{Anweisungen}}; + + % Arrows + \draw[arrow] (start) -- (decision1); + \draw[arrow] (decision1) -- node[right] {Wahr} (process2); + + % Decision branch + \draw[arrow] (decision1) -- node[above] {Falsch} ($(decision1.east) + (1cm, 0)$) -- ($(decision1.east) + (1cm, -3cm)$); + \draw[arrow] (process2.west) -| (-2,-2) |- (decision1.west); +\end{tikzpicture} |
