Reddit是美国最大的社区网站,Reddit的Logo是Ohanian设计的红眼外星人,名字叫Snoo。下面给出绘制logo的Tikz详细代码,作者给出了绘制的详细过程的录像,您可以观瞻观瞻! 绘制效果图如下: 源代码分享:
\documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,shadows,arrows} \begin{document} \pgfdeclarelayer{background} \pgfdeclarelayer{main} \pgfdeclarelayer{foreground} \pgfsetlayers{background,main,foreground} \definecolor{orangered}{RGB}{255,69,00} \tikzstyle{vrutt}=[draw=orangered, fill=orangered, circle,minimum height=0.5in, line width=5mm] \tikzstyle{elli}=[draw, ellipse, minimum height=2.85in, text width=2.95in, text centered, line width=5mm] \begin{tikzpicture} \begin{pgfonlayer} {foreground} \node [elli, fill=white] (face) {}; %feet \node [below of=face,yshift=-4.1in, xshift=-2.0in] (base){}; \draw [line width=5mm](base) -- +(3.8in,0in); \draw [line width=5mm] (4.3,-11.5) arc (-10:80:1.8); \draw [line width=5mm] (-4.7,-11.5) arc (190:80:1.8); %torso \draw [line width=5mm](face.230) to[out=260, in=150] +(0.75in,-3.15in); \draw [line width=5mm](face.310) to[out=280, in=30] +(-0.75in,-3.15in); %eyes \node [vrutt, xshift=-5em, yshift=9mm] (lefteye) {}; \node [vrutt, xshift=5em, yshift=9mm] (righteye) {}; % Smile \draw [line width=5mm] (-2.0,-1.0) to[out=320, in=220] (2.0,-1.0); %Antenna \draw[line width=5mm](-0.5,3.76) -- +(1cm, 2.5cm) -- +(3.5cm, 2cm); \node [vrutt, fill=none, draw=black, above of=face, yshift=4.65cm, xshift=3.5cm, minimum height=0.5in] (antenna){}; %Text \node (face.275)[yshift=-3in] (text){\Huge \textbf{\LaTeX}}; \end{pgfonlayer} \begin{pgfonlayer} {background} %Ears \draw [line width=4mm] (4.4,1.3) arc (-80:315:1); \draw [line width=4mm] (-4.3,1.3) arc (-80:315:1); %hands \draw [line width=4mm] (3.05,-7.8) arc (-70:80:2.3); \draw [line width=4mm] (-3.05,-7.8) arc (250:90:2.3); \end{pgfonlayer} \end{tikzpicture} \end{document}作者绘制的过程录像如下: How to draw Reddit Alien in LaTeX using Tikz logo的AI素材下载: http://satedproductions.com/tmp/reddit/alien/ Reddit的源代码下载:https://github.com/reddit/reddit 选自: http://quicklatex.blogspot.com/2012/01/how-to-draw-cartoon-figures-in-latex.html
发表评论 取消回复