Welcoming 2019 Lunar New Year: How to draw a (lovely) pig?
The very first appearance of the tikzpig
:
\documentclass{standalone}
\usepackage{tikz}
\definecolor{piglight}{RGB}{246,208,198}
\definecolor{pigdark}{RGB}{241,164,142}
\begin{document}
\begin{tikzpicture}
% Tail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\draw[pigdark,thick] (0.8471, 0.5927) .. controls (0.8549, 0.4832) and (0.8046, 0.4105) .. (0.7319, 0.4079) .. controls (0.6592, 0.4052) and (0.6142, 0.4365) .. (0.5964, 0.5024) .. controls (0.5786, 0.5682) and (0.6252, 0.6291) .. (0.6794, 0.6342) .. controls (0.7335, 0.6394) and (0.7561, 0.6114) .. (0.7663, 0.5661) .. controls (0.7765, 0.5208) and (0.746, 0.458) .. (0.7192, 0.4319) .. controls (0.6924, 0.4058) and (0.7073, 0.4182) .. (0.6604, 0.3859) .. controls (0.6134, 0.3536) and (0.4367, 0.3643) .. (0.3877, 0.5055);
% Body %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fill[piglight] ( 0.6, 0.8 ) .. controls ( 0.6 , 0.4) and ( 0.35, 0.16) .. ( 0.0, 0.16) .. controls (-0.35, 0.16) and (-0.6 , 0.4) .. (-0.6, 0.8 ) .. controls (-0.6 , 1.3) and (-0.35, 1.5) .. ( 0.0, 1.5) .. controls ( 0.35, 1.5) and ( 0.6 , 1.3) .. ( 0.6, 0.75) -- cycle;
% Arms %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fill[pigdark,rotate around={70:(0.33,0.9)}] (0.33,0.9) ellipse (0.18 and 0.13);
\fill[pigdark,rotate around={-70:(-0.33,0.9)}] (-0.33,0.9) ellipse (0.18 and 0.13);
% Head %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fill[piglight] (0,1.64) ellipse (.5 and .5);
% Eyes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fill[gray] (-0.09, 1.82) circle (0.02);
\fill[gray] ( 0.09, 1.82) circle (0.02);
% Nose %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fill[pigdark] (0, 1.62) ellipse (0.18 and 0.14);
\fill[gray] (-0.06, 1.62) circle (0.035);
\fill[gray] ( 0.06, 1.62) circle (0.035);
% Mouth %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\draw[gray] (0.105, 1.46) arc [start angle=-50, end angle=-130, radius=0.16] ;
% Ears %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fill[pigdark] (0.22, 2.0392) .. controls (0.22, 2.1584) and (0.49460, 2.255) .. (0.49460, 2.255) .. controls (0.49460, 2.255) and (0.5300, 1.86) .. (0.3721, 1.86) .. controls (0.2891, 1.86) and (0.22, 1.9201) .. (0.22, 2.0392) -- cycle;
\fill[piglight] (0.22, 2.0392) .. controls (0.26, 2.1584) and (0.47, 2.22) .. (0.47, 2.20) .. controls (0.47, 2.2) and (0.49, 1.9) .. (0.3721, 1.9) .. controls (0.2891, 1.88) and (0.22, 1.88) .. (0.22, 2.0392) -- cycle;
\fill[pigdark] (-0.22, 2.0392) .. controls (-0.22, 2.1584) and (-0.49460, 2.255) .. (-0.49460, 2.255) .. controls (-0.49460, 2.255) and (-0.5300, 1.86) .. (-0.3721, 1.86) .. controls (-0.2891, 1.86) and (-0.22, 1.9201) .. (-0.22, 2.0392) -- cycle;
\fill[piglight] (-0.22, 2.0392) .. controls (-0.26, 2.1584) and (-0.47, 2.22) .. (-0.47, 2.20) .. controls (-0.47, 2.2) and (-0.49, 1.9) .. (-0.3721, 1.9) .. controls (-0.2891, 1.88) and (-0.22, 1.88) .. (-0.22, 2.0392) -- cycle;
% Feet %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{scope}
\clip (-0.5,0.4) rectangle (0.5,0.13);
\fill[pigdark] (-0.22,0.17) circle (0.15);
\fill[pigdark] (0.22,0.17) circle (0.15);
\end{scope}
\end{tikzpicture}
\end{document}
In the mean time, the tikzpig
was added to the development version of the tikzlings
package (available here) with improvements by @Circumscribe and @CarLaTeX (thanks a lot!)
\documentclass{standalone}
\usepackage{tikzlings}
\begin{document}
\begin{tikzpicture}
\pig
\end{tikzpicture}
\end{document}
You really don't need any packages for this
\documentclass{article}
\begin{document}
\begin{picture}(100,100)
\put(43,56){\circle{6}}
\put(43,56){\circle*{1}}
\put(57,56){\circle{6}}
\put(57,56){\circle*{1}}
\put(50,45){\circle{12}}
\put(48,45){\oval(3,5)}
\put(52,45){\oval(3,5)}
\put(50,50){\circle{40}}
\put(43,32){\oval(5,20)[b]}
\put(57,32){\oval(5,20)[b]}
\put(64,64){\vector(1,1){10}}
\end{picture}
\end{document}
For the sake of completeness, let's go for a Unicode pig!
% arara: xelatex
\documentclass{standalone}
\usepackage{fontspec}
\usepackage{graphicx}
\setmainfont{Symbola}
\begin{document}
\scalebox{10}{\char"1F416}
\end{document}