Tikz 设计花园

Tikz 设计花园

您能帮我在 tikz 中创建这张代表花园部分的图片吗?

在此处输入图片描述

答案1

所有内容都可以在 pgfmanual 中找到,您只需将它们组合起来即可。此代码为您提供了一个开始,您需要自己调整轮廓,除非您找到另一个愿意为您做这件事的人。

\documentclass[tikz,border=3pt]{standalone}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}[thick]
\draw[smooth] plot coordinates{(0,2)(6,2.6)(9,6)(9.5,8)};
\draw (0,7) .. controls ++(2,0.1) .. (2.2,8) coordinate[pos=1/3] (y1)
coordinate[pos=2/3] (y2);
\draw (0,5) .. controls ++(1.6,0.2) .. (y1) coordinate[pos=0.3] (y3);
\draw (0,3.5) .. controls ++(1.3,0.2) .. (y3) coordinate[pos=0.3] (y4);
\draw (0,2) .. controls ++(1.3,0.2) .. (y4);
\draw (5.5,8) .. controls ++(-1,-1.4) .. (y2) coordinate[pos=0.2] (y5);
\draw (7.5,8) .. controls ++(-0.6,-1.4) .. (y5) coordinate[pos=0.2] (y6);
\draw (9,6) .. controls ++(-1.8,0.5) .. (y6);
\draw (3,3.8) circle (1.6 and 1);
\draw (3,3.8) circle (0.6 and 0.45);
\draw[rotate around={35:(6.5,4.6)}] (6.5,4.5) circle (1.6 and 0.6);
\draw[rotate around={35:(6.5,4.6)}] (5.8,4.5) circle (0.6 and 0.3);
\draw[rotate around={35:(6.5,4.6)}] (7.2,4.5) circle (0.6 and 0.3);
\draw (5,6) circle (1 and 0.6);
\node[draw,ellipse,text width=1.5cm,font=\tiny\sffamily,inner sep=0pt,minimum
height=1.2cm] at (2.8,5.8){unreadable 
text};
\node[text width=1.5cm,font=\tiny\sffamily,inner sep=0pt,anchor=north] at 
(3.5,8){unreadable text};
\end{tikzpicture}
\end{document}

在此处输入图片描述

此片段展示了获取平滑边界的三种可能方法。

相关内容