You are breaking the path into pieces by repeating the coordinate names (B)
and (D)
hence each piece is filled individually. Removing them inside the braces (and the extra (C)
) fixes the problem.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\begin{document}
\begin{tikzpicture}
\coordinate (A) at (0,0);
\coordinate (B) at (2,0);
\coordinate (C) at (2,2);
\coordinate (D) at (0,2);
\begin{scope}[decoration=zigzag]
\draw[fill=red] (A) to[out=10,in=170] (B)
decorate {-- (C)}
to[out=170,in=10] (D)
decorate {--(A)};
\end{scope}
\end{tikzpicture}
\end{document}
![enter image description here](https://i.stack.imgur.com/g1eTV.png)
![enter image description here](https://i.stack.imgur.com/pZwYN.png)
\documentclass[tikz,border=2pt]{standalone}
\usetikzlibrary{chains, positioning, shapes.symbols}
\usepackage{xcolor}
\definecolor{darkblue}{RGB}{9,72,90}
\definecolor{lightblue}{RGB}{124,184,201}
\begin{document}
\begin{tikzpicture}[
node distance = 2pt,
start chain = going right,
start/.style = {signal,
draw=darkblue,
fill=lightblue,
text width=2cm,
minimum height=1cm,
font=\scriptsize,
text=white,
signal pointer angle=120, on chain},
cont/.style = {start,
signal from=west}
]
\node[start,](a) {\bfseries Construction de l'image};
\node[above=0.6cm of a.west, anchor=south west,
rectangle,
draw=darkblue,
fill=darkblue,
minimum height=2cm,
minimum width=13cm,
text=white,
inner sep=1pt]
(titre){\large{La photographie numérique}};
\node[cont] {\bfseries Métadonnées EXIF};
\node[cont](b) {\bfseries Step3};
\node[right=5.4cm of titre.north east, anchor=north east,
rectangle,
draw=darkblue,
fill=darkblue,thick,
rounded corners,
minimum height=3cm,
text width=5cm,
text=white]
(competences){Identifier les étapes de la construction de l'image finale};
\end{tikzpicture}
\end{document}
Best Answer