1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
\documentclass{arbeitsauftrag}
\usepackage[table]{xcolor}
\usepackage{tabularx}
\usepackage{tikz}
\usetikzlibrary{calc,decorations.pathreplacing,angles,quotes}
\usepackage{stackengine}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}[rotate=45,x=3cm,y=3cm,line width=0.75pt]
\draw (0, 0) -- (1,1) -- (0, 2) -- (-1,1) -- (0,0);
\path[fill=orange] (0, 0) -- (1, 1) -- (0, 1) -- (0, 0);
\path[fill=blue] (1, 1) -- (0, 2) -- (0, 1) -- (1, 1);
\path[fill=orange] (0, 1) -- (-1, 1) -- (0, 2) -- (0, 1);
\path[fill=purple] (0, 1) -- (-1, 1) -- (0, 0) -- (0, 1);
\draw[red] (0, 0) -- (1, 1);
\end{tikzpicture}
\end{document}
|