\documentclass[margin=10pt,
convert,
convert={
outext=.png,
command=\unexpanded{
pdftocairo -r 600 -png \infile % 将生成的pdf文件转换为png图像
}
}
]{standalone}
% 支持中文
\usepackage{ctex}
\usepackage{tkz-euclide}
\usetikzlibrary{arrows,shapes,chains,calc}
\begin{document}
\begin{tikzpicture}[rcorners/.style=rounded corners=2.5pt]
\tkzDefPoints{0/0/O,0/5/A,8/5/B,9/0/C,1/6.5/D,9/6.5/E,9/1.5/F, 0.54/5.11/G,1.4/6.4/H,8.5/6.4/I,7.54/5.11/J}
%
% \tkzDefLine[parallel=through G](A,D) \tkzGetPoint{H}
% \tkzDefLine[parallel=through H](A,B) \tkzGetPoint{I}
%%画外框
\draw [thick,rcorners](O)rectangle(B);
%\draw [xshift=1cm,yshift=1.5cm](0,0)rectangle(8,5);
\draw [thick,rcorners](0.02,4.97)--(D)--(E)--(F)--(7.978,0.02);
\draw[rcorners](0.04,5.06)--(8.06,5.09)--(8.06,0.09);
\draw[rcorners] (0.12,0.12)--(0.12,4.88)--(7.88,4.88)--(7.88,0.12)--cycle;
%%画顶上平行四边形
\draw [rcorners](G)--(H)--(I)--(J)--cycle;
%%画脚
\draw[thick,rcorners] (0.4,0)--(0.5,-0.3)--(1,-0.3)--(1.2,0);
\draw[thick,rcorners] (7,0)--(7.2,-0.3)--(7.7,-0.3)--(7.8,0);
%\draw[thick] (8.5,0.78)--(8.5,0.55)--(8.332,0.55);
\draw[thick,rcorners] (8.7,1.08)--(8.7,0.85)--(8.532,0.85);
%%画面板左侧
\draw [rcorners](0.36,0.12)--(0.36,4.76)--(6,4.76)--(6,0.12)--cycle;
\draw [rcorners](0.4,0.12)--(0.4,4.7)--(5.94,4.7)--(5.94,0.12)--cycle;
%面板门把手
\draw (0.44,4.04)--(0.44,4.52)--(5.82,4.52)--(5.82,4.04)--cycle;
\draw (0.44,4.04)rectangle(0.92,4.52);
\draw [](0.44,4.52)--(0.45,4.6)--(0.98,4.6)--(0.98,4.53);
\draw (5.34,4.04)rectangle(5.82,4.52);
\draw (5.34,4.52)--(5.35,4.6)--(5.89,4.6)--(5.89,4.04)--(5.82,4.04);
%商标
\draw [rcorners](0.36,0.12)--(0.36,0.6)--(6,0.6)--(6,0.12)--cycle;
\node at (3,0.36){\bfseries \large SUP \ R};
\tkzDrawPoint (3.3,0.36)
\draw [very thick](3.3,0.36)circle[radius=4pt];
%%画旋钮
\foreach \x in {1.3,2.2,3.1,4} \draw (7,\x)[thick]circle[radius=5pt];
\foreach \x in {1.3,2.2,3.1,4} \draw (7,\x)circle[radius=6.5pt];
\foreach \x in {1.31,2.21,3.11,4.01} \draw (7.02,\x)circle[radius=7pt];
\foreach \x in {1.29,2.19,3.1,3.99} \draw (6.83,\x)rectangle(6.93,\x+0.04);
\draw (7.5,2.65)circle[radius=2pt];
%%画右侧面
\draw[rcorners] (8.1,0.8)--(8.1,4.6)--(8.95,5.95)--(8.95,2.15)--cycle;
\foreach \x/\y in {0/0,0.15/0.225,0.3/0.45,0.45/0.675,0.6/0.9} \draw[rounded corners=0.1,black!70] (8.15+\x,1.65+\y)--(8.14+\x,1.75+\y)--(8.24+\x,1.9+\y)--(8.24+\x,1.8+\y)--cycle;
\begin{scope}[yshift=7]
\foreach \x/\y in {0/0,0.15/0.225,0.3/0.45,0.45/0.675,0.6/0.9} \draw[rounded corners=0.1,black!70] (8.15+\x,1.65+\y)--(8.14+\x,1.75+\y)--(8.24+\x,1.9+\y)--(8.24+\x,1.8+\y)--cycle;
\end{scope}
\begin{scope}[yshift=-7]
\foreach \x/\y in {0/0,0.15/0.225,0.3/0.45,0.45/0.675,0.6/0.9} \draw[rounded corners=0.1,black!70] (8.15+\x,1.65+\y)--(8.14+\x,1.75+\y)--(8.24+\x,1.9+\y)--(8.24+\x,1.8+\y)--cycle;
\end{scope}
\begin{scope}[yshift=-14]
\foreach \x/\y in {0/0,0.15/0.225,0.3/0.45,0.45/0.675,0.6/0.9} \draw[rounded corners=0.1,black!70] (8.15+\x,1.65+\y)--(8.14+\x,1.75+\y)--(8.24+\x,1.9+\y)--(8.24+\x,1.8+\y)--cycle;
\end{scope}
\begin{scope}[yshift=56]
\foreach \x/\y in {0/0,0.15/0.225,0.3/0.45,0.45/0.675,0.6/0.9} \draw[rounded corners=0.1,black!70] (8.15+\x,1.65+\y)--(8.14+\x,1.75+\y)--(8.24+\x,1.9+\y)--(8.24+\x,1.8+\y)--cycle;
\end{scope}
\begin{scope}[yshift=63]
\foreach \x/\y in {0/0,0.15/0.225,0.3/0.45,0.45/0.675,0.6/0.9} \draw[rounded corners=0.1,black!70] (8.15+\x,1.65+\y)--(8.14+\x,1.75+\y)--(8.24+\x,1.9+\y)--(8.24+\x,1.8+\y)--cycle;
\end{scope}
\begin{scope}[yshift=70]
\foreach \x/\y in {0/0,0.15/0.225,0.3/0.45,0.45/0.675,0.6/0.9} \draw[rounded corners=0.1,black!70] (8.15+\x,1.65+\y)--(8.14+\x,1.75+\y)--(8.24+\x,1.9+\y)--(8.24+\x,1.8+\y)--cycle;
\end{scope}
\begin{scope}[yshift=77]
\foreach \x/\y in {0/0,0.15/0.225,0.3/0.45,0.45/0.675,0.6/0.9} \draw[rounded corners=0.1,black!70] (8.15+\x,1.65+\y)--(8.14+\x,1.75+\y)--(8.24+\x,1.9+\y)--(8.24+\x,1.8+\y)--cycle;
\end{scope}
\end{tikzpicture}
\end{document}
如果你希望交流LaTeX使用或者TikZ作图或者Beamer制作幻灯片方面的问题,请先添加作者微信:niltxz,
然后加入作者的LaTeX+TikZ+Beamer 交流微信群。
扫描下图中二维码,关注公众号:大哉数学之为用 , 获取更多LaTeX
、Tikz
、Beamer
方面的资料。