我需要一个反向和扭曲的字母“D”,下图在线条连接处有空白。
\documentclass[dvipsnames,11pt]{scrartcl}
\usepackage{tikz,pgfornament,tikzrput} % altermundus.com/pages/tkz/tikzrput/
\begin{document}
\begin{tikzpicture}
\draw [line width=2mm,line cap = round, red] (0,3) ..controls (-4,1) and (-5,-2) .. (0,-3);
\draw [line width=2mm,rounded corners, red] (0,3) --(0,-3);
\end{tikzpicture}
\end{document}
答案1
将两行合并为一行。两个例子:
- 用圆线连接(红线)
- 无圆角线连接(蓝线)
用于连接线cycle
的最后一条线坐标
\documentclass[dvipsnames,11pt]{scrartcl}
\usepackage{tikz,pgfornament,tikzrput} % altermundus.com/pages/tkz/tikzrput/
\begin{document}
\begin{tikzpicture}
\draw [line width=2mm,line join = round, red] (0,3) ..controls (-4,1) and (-5,-2) .. (0,-3) -- cycle;
\begin{scope}[xshift=44mm]
\draw [line width=2mm,blue] (0,3) ..controls (-4,1) and (-5,-2) .. (0,-3) -- cycle;
\end{scope}
\end{tikzpicture}
\end{document}