这些表情是作者在TUGboat发表的文章所用的图片,相比LaTeX技巧727:Tikz绘制表情符号图片素朴一些,表情很可爱。效果图如下: 绘制代码如下:
\documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} \draw[thick] (0cm,0cm) circle(1cm); \draw[thick] (-0.5,-0.6) -- (0.5,-0.6); \draw [thick, fill=black] (0,-0.2) circle (0.1); \draw [rotate=90, fill=black] (0.3,0.3) ellipse (0.2 and 0.1); \draw [rotate=90, fill=black] (0.3,-0.3) ellipse (0.2 and 0.1); \end{tikzpicture} \begin{tikzpicture} \draw[thick] (0cm,0cm) circle(1cm); \draw[thick] plot [smooth,tension=1.5] coordinates{(-0.5,-0.5) (0,-0.8) (0.5,-0.5)}; \draw [thick, fill=black] (0,-0.2) circle (0.1); \draw[thick] plot [smooth,tension=1.5] coordinates{(-0.4,0.4) (-0.3,0.5) (-0.2,0.4)}; \draw[thick] plot [smooth,tension=1.5] coordinates{(0.4,0.4) (0.3,0.5) (0.2,0.4)}; \end{tikzpicture} \begin{tikzpicture} \draw[thick] (0cm,0cm) circle(1cm); \draw[thick] plot [smooth,tension=1.5] coordinates{(-0.5,-0.6) (0,-0.4) (0.5,-0.6)}; \draw [thick, fill=black] (0,-0.2) circle (0.1); \draw [rotate=90, fill=black] (0.3,0.3) ellipse (0.2 and 0.1); \draw [rotate=90, fill=black] (0.3,-0.3) ellipse (0.2 and 0.1); \draw[thick] plot [smooth,tension=1.5] coordinates{(0.3,0.0) (0.4,-0.2) (0.2,-0.2) (0.3,0.0)}; \end{tikzpicture} \begin{tikzpicture} \draw[thick] (0cm,0cm) circle(1cm); \draw[thick] (-0.4,0.3) -- (-0.2,0.3); \draw[thick] (0.4,0.3) -- (0.2,0.3); \draw [thick, fill=black] (0,-0.2) circle (0.1); \draw [thick, fill=white] (0,-0.4) circle (0.2); \end{tikzpicture} \begin{tikzpicture} \draw[thick] (0cm,0cm) circle(1cm); \draw[thick] plot [smooth,tension=1.5] coordinates{(-0.3,-0.7) (-0.2,-0.6) (0.3,-0.6)}; \draw[thick] (-0.4,0.5) -- (-0.2,0.4); \draw[thick] (0.4,0.6) -- (0.2,0.5); \draw [thick, fill=black] (0,-0.2) circle (0.1); \draw [rotate=90, fill=black] (0.3,0.3) ellipse (0.05 and 0.1); \draw [rotate=90, fill=black] (0.3,-0.3) ellipse (0.05 and 0.1); \end{tikzpicture} \begin{tikzpicture} \draw[thick] (0,0) circle (1); \draw[thick] plot [smooth,tension=1.5] coordinates{(-0.3,-0.5) (0,-0.7) (0.3,-0.5)}; \draw [thick, fill=black] (0,-0.2) circle (0.1); \node[circle,minimum width=0.1, inner color=black] at (-0.6,-0.2) {}; \node[circle,minimum width=0.1, inner color=black] at (0.6,-0.2) {}; \draw [rotate=90, fill=black] (0.3,0.3) ellipse (0.2 and 0.1); \draw [rotate=90, fill=black] (0.3,-0.3) ellipse (0.2 and 0.1); \end{tikzpicture} \end{document}选自:http://texblog.org/2013/04/22/simple-smiley-faces-with-tikz-in-latex/
发表评论 取消回复