How can I fill the part of a shape between two positions with a color?
Is there an easy way with 'path picture' etc.?
PS:
· I know there are examples for that task, but these mostly for paths, not for shapes.
· Yes, there should be a brute force solution (by drawing an arc) in that case as well.
But I asked myself, whether there is an elegant way but setting some keys etc.
I need to fill plenty of parts and I am looking for an systematic way, not how to create the shown picture very fast (note: this is just an example).
MWE:
\documentclass[]{book}
\usepackage{tikz}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}[font=\tiny\sffamily, very thin]
\node[rounded rectangle, draw, inner sep=0pt,
line width=5mm,
minimum width=40mm, minimum height=20mm,
](s){*};
\draw[brown] (s.center) -- +(s.0);
\draw[red] (s.center) -- ++(s.north east) -- ++(0,-10mm-2.5mm);
\draw[red] (s.center) -- ++(s.north east) -- ++(0,-10mm-2.5mm);
\end{tikzpicture}
\end{document}




(s.30)and(s.67). But maybe not that improtant: see my answer. – cis May 03 '23 at 06:16