答案1
这是一条随机河流。更改\pgfmathsetseed
为另一条河流。
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\begin{document}
\begin{tikzpicture}
\fill[lime!70!olive](0,0)rectangle(8,4);
\clip(0,0)rectangle(8,4);
\draw[red, very thick, text=black](2,1)--node[above left]{$x$}(2,3)--node[above]{$y$}(6,3)--node[above right]{$x$}(6,1);
\pgfmathsetseed{14159}
\draw[decorate, decoration={random steps, segment length=3mm, amplitude=1pt}, lime!70!black, line width=.5mm, double=cyan!60!white, double distance=1cm](-1,1)--node[above=9mm, text=black]{A}(9,1);
\end{tikzpicture}
\end{document}