我希望缩小我们数学学会的以下莫比乌斯带的宽度。生成的图像应该更像下面这样
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.geometric}
\tikzset{my polygon/.style={regular polygon,regular polygon sides=#1,minimum size=4cm}}
\definecolor{byublue}{RGB}{0 84 65}
\definecolor{ballblue}{rgb}{0.13, 0.67, 0.8}
\definecolor{dbb}{rgb}{0.09, 0.45, 0.27}
\definecolor{gbb}{rgb}{0.0, 0.62, 0.42}
\definecolor{lbb}{rgb}{0.13, 0.7, 0.67}
\usepackage{libertineotf}
\newcommand{\strip}[1]{%
\shadedraw[very thick,top color=white,bottom color=gray,rotate=#1] (0:2.8453) ++ (-30:1.5359) arc (60:0:2) -- ++ (90:5) arc (0:60:2) -- ++ (150:3) arc (60:120:2) -- ++ (210:5) arc (120:60:2) -- cycle;
}
\newcommand{\MoebiusStrip}[3]{%
\begin{scope} [transform shape]
\strip{0}
\strip{120}
\strip{-120}
\draw (-60:3.5) node[blue, scale=6,rotate=30] {#1};
\draw (180:3.5) node[yellow, scale=6,rotate=-90]{#3};
\clip (-1.4,2.4)--(-.3,6.1)--(1.3,6.1)--(5.3,3.7)--(5.3,-2.7)--cycle;
\strip{0}
\draw (60:3.5) node [red,xscale=-6,yscale=6,rotate=30]{#2};
\end{scope}
}
\begin{document}
\begin{tikzpicture} [scale=1.2035, rotate=-29]
\MoebiusStrip{\Large\bf\biolinum VMS}{}{}
\end{tikzpicture}
\end{document}
答案1
我并没有让它变薄,而是让三角形变大了。注意:如果不设置inner sep=0pt
节点,它实际上比条带更宽,导致底部有轻微的间隙。
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.geometric}
\tikzset{my polygon/.style={regular polygon,regular polygon sides=#1,minimum size=4cm}}
\definecolor{byublue}{RGB}{0 84 65}
\definecolor{ballblue}{rgb}{0.13, 0.67, 0.8}
\definecolor{dbb}{rgb}{0.09, 0.45, 0.27}
\definecolor{gbb}{rgb}{0.0, 0.62, 0.42}
\definecolor{lbb}{rgb}{0.13, 0.7, 0.67}
\usepackage{libertineotf}
\newcommand{\strip}[1]{%
\shadedraw[very thick,top color=white,bottom color=gray,rotate=#1] (60:3) -- ++ (-30:5) arc (60:0:2)
-- ++(90:3) arc (0:60:2) -- ++(150:7) arc (60:120:2) -- ++ (210:3) arc (120:60:2) -- cycle;
}
\newcommand{\MoebiusStrip}[3]{%
\begin{scope} [transform shape]
\strip{0}
\strip{120}
\strip{-120}
\draw (-60:4.3) node[inner sep=0pt,blue, scale=6,rotate=30] {#1};
\draw (180:4.3) node[inner sep=0pt,yellow, scale=6,rotate=-90]{#3};
\draw (60:4.3) node [inner sep=0pt,red,xscale=-6,yscale=6,rotate=30]{#2};
\clip (5,0) -- (20:7) -- ++(-60:1) -- ++(-90:3) -- (-15:7) -- cycle;
\strip{0}
\end{scope}
}
\begin{document}
\begin{tikzpicture} [scale=1.2035, rotate=-29]
\MoebiusStrip{\Large\bf\biolinum VMS}{}{}
\end{tikzpicture}
\end{document}