画一只火鸡、一个南瓜派,或者任何其他传统上与感恩节有关的物品

画一只火鸡、一个南瓜派,或者任何其他传统上与感恩节有关的物品

使用 TeX 和 LaTeX 相关的工具和包,您将如何绘制火鸡、南瓜派、山核桃派、肉汁船或任何其他传统上与感恩节相关的物品?

答案1

需要生动的想象力...

\documentclass{article}
\usepackage{stackengine,graphicx,xcolor}

\begin{document}
Turkey?\quad 
\sffamily\color{brown!80!black}
\stackinset{c}{-4.8pt}{c}{5pt}{\color{brown}\LARGE Y}{%
\stackinset{c}{0pt}{c}{-1pt}{\scalebox{1.2}{\color{orange}\LARGE e}}{%
\stackinset{c}{0.5pt}{c}{-8.5pt}{\color{yellow}K}{%
\stackinset{c}{7.5pt}{c}{4.5pt}{\color{red}\LARGE r}{%
\stackinset{c}{8.5pt}{c}{5pt}{\color{blue!50!cyan}\tiny T}{%
\Huge U%
}}}}}
\fboxsep=.5pt
\color{black}\rmfamily\raisebox{3ex}{--}\kern-.3pt%
\raisebox{3.5ex}{\fbox{\scalebox{.5}{%
\tiny\textbackslash@gobble}}}
\end{document}

在此处输入图片描述

第二次尝试: 南瓜派)

\documentclass{article}
\usepackage{xcolor}
\definecolor{pumpkin}{rgb}{1,0.459,0.094}
\begin{document}
\ooalign{$\pi$\cr\kern.15pt\textcolor{pumpkin}{$\pi$}}
\end{document}

在此处输入图片描述

参考:http://www.colorhexa.com/ff7518

答案2

这有点像自己做意大利面——麻烦多于价值。
不过,这里有一只小小的感恩节火鸡元帖子。祝你在那边度假愉快!

在此处输入图片描述

prologues := 3;
outputtemplate := "%j%c.eps";

beginfig(1);

u = 1cm;

color brown, light_brown, dark_brown, orange, dark_orange, gold;

brown  = (159/255,  92/255, 55/255);
orange = (255/255, 170/255, 45/255);
gold   = (255/255, 183/255, 11/255);
light_brown = 0.2[brown,white];
dark_brown  = 0.2[brown,black];
dark_orange = 0.4[orange,red];

path body, wing, thigh, head, neck, foot, leg, feather, brim, beak, crop, eye, crown, buckle, band;

body = fullcircle scaled 2.1u;
neck = halfcircle rotated 180 scaled 0.4u shifted (0,0.2u) -- 
       halfcircle             scaled 0.4u shifted (0,1.2u) -- cycle;
head = fullcircle scaled 1.0u shifted (0,1.4u);
eye  = fullcircle scaled 3 shifted center head shifted (5,2);
wing = (subpath (-0.8,1.6) of body {down} .. {curl 0} cycle) rotatedabout(point 1.6 of body,5);
leg  = (origin -- (0,-2/3u)) shifted point 6.4 of body shifted 2 up;
foot = (5 down rotated -60 -- origin -- 5 down rotated 60) shifted point 0.7 of leg;
thigh = fullcircle scaled 0.32u shifted point 0 of leg;
feather = (origin {curl 0} .. (2,1/2) .. (3,0) .. (2,-1/2) .. {curl 0} cycle) scaled 1/2u;
brim = fullcircle xscaled 1.6u yscaled 1/3u shifted center head shifted 4 up;
crown = point 1/2 of head -- subpath (1.5,2.5) of brim shifted (0,5/8u) -- point 7/2 of head 
  .. {right} point 2 of head shifted 8 down ..  cycle;

band = buildcycle( subpath (1,3) of brim,
                   subpath (4,3) of crown,
                   subpath (3,1) of brim shifted 5 up,
                   subpath (1,0) of crown);
buckle = (origin -- right -- (1,1) -- (-1,1) -- (-1,-1) -- (1,-1) -- right) scaled 2.4 shifted center band shifted 1/2up ;
beak = (origin -- subpath (0,1) of fullcircle rotated 142 --cycle) scaled 12 shifted center head shifted (6,-3);
crop = subpath (1,2) of beak {dir 275} .. {left} point 5.8 of head shifted 2 up .. {dir 20} point 1 of beak .. cycle;

picture whole_leg;
whole_leg = image(
  draw leg  withpen pencircle scaled 3 withcolor dark_orange;
  draw foot withpen pencircle scaled 3 withcolor dark_orange;
  fill thigh withcolor brown;
);

% feathers first
for t=-29 step 48 until 229+eps: fill feather rotated t shifted 10 up withcolor orange; endfor
for t= -5 step 48 until 205+eps: fill feather rotated t shifted 10 up withcolor dark_orange; endfor

% start hat
fill brim withcolor black;
% bird
fill body withcolor brown;
fill neck withcolor light_brown;
fill head withcolor light_brown;
fill eye  withcolor 1/2[brown,black];
fill eye reflectedabout(up,down) withcolor 1/2[brown,black];
fill beak withcolor gold;
fill crop withcolor .67 red;
fill wing withcolor dark_brown;
fill wing reflectedabout(up,down) withcolor dark_brown;
draw whole_leg;
draw whole_leg reflectedabout(up,down);

% rest of hat
fill crown withcolor black;
fill band withcolor .3 white;
draw buckle withpen pencircle scaled 7/9 withcolor gold;

endfig;
end.

我应该补充一点,虽然设计不是我的,上面的实现都是我的。

答案3

我们先从原料开始吧?这是南瓜:

代码

\documentclass[tikz, border=2mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.12, width=15cm}

\begin{document}

\pgfmathsetmacro{\RMax}{3}
\pgfmathsetmacro{\RMin}{2}
\pgfmathsetmacro{\r}{2.3}
\pgfmathsetmacro{\n}{5}

\begin{tikzpicture}
    \begin{axis}
    [   view={60}{30},
        hide axis=true,
    ]
    \addplot3
    [   surf,
        shader=interp,
      samples=120,
      samples y=16,
      %color=orange,
      opacity=1,
      domain=0:360,
      y domain=0:360,
      z buffer=sort,
      point meta={sqrt(x*x+y*y+z*z)},
      colormap={pumpkin}{rgb255(0cm)=(215,102,0);rgb255(1cm)=(250,175,1);rgb255(2cm)=(255,138,32);rgb255(3cm)=(255,193,111)},
      ]
        ({(\RMin+(\RMax-\RMin)*abs(sin(\n*x))+\r*cos(y))*cos(x)}, {(\RMin+(\RMax-\RMin)*abs(sin(\n*x))+\r*cos(y))*sin(x)}, {\r*sin(y)});

    \addplot3
    [   surf,
        shader=interp,
      samples=90,
      samples y=10,
      opacity=1,
      domain=0:360,
      y domain=0.5*\RMax:1.2*\RMax,
      colormap={stem}{rgb255(0cm)=(0,121,6);rgb255(1cm)=(0,191,10)},
      z buffer=sort,
      point meta=z,
    ]
        ({y/20*cos(x)+y/10*cos(y)},{y/20*sin(x)+y/10*sin(y)},{y});
    \end{axis}
\end{tikzpicture}

\end{document}

输出

在此处输入图片描述

还有一个南瓜派:

代码

\begin{tikzpicture}
    \begin{axis}
    [   view={45}{30},
        hide axis=true,
        unit vector ratio=1 1 1,
    ]
        \addplot3
        [   domain=\R:1.05*\R,
            y domain=45:225,
            surf,
            shader=interp,
            point meta={z*z},
            z buffer=sort,
            samples=5,
      samples y=180,
      colormap={mantle}{rgb255(0cm)=(206,165,108);rgb255(1cm)=(163,117,54)},
        ] 
            (   {x*cos(y)},
                {x*sin(y)},
                {   and(x>\R,x<=1.005*\R) + and(x>=\R,x<1.045*\R)*(1.05+0.05*abs(cos(10*y)))});

        \addplot3
        [   domain=0:\R,
            y domain=0:360,
            surf,
            shader=interp,
            point meta={cos(sqrt(x*x+y*y)/pi*180*4)},
            z buffer=sort,
            colormap={filling}{rgb255(0cm)=(204,97,0);rgb255(1cm)=(221,105,0)},
        ] 
            ({x*cos(y)},{x*sin(y)},{1});

                \addplot3
        [   domain=\R:1.05*\R,
            y domain=225:405,
            surf,
            shader=interp,
            point meta={z*z},
            z buffer=sort,
            samples=5,
      samples y=180,
      colormap={mantle}{rgb255(0cm)=(206,165,108);rgb255(1cm)=(163,117,54)},
        ] 
            (   {x*cos(y)},
                {x*sin(y)},
                {   and(x>\R,x<=1.005*\R) + and(x>=\R,x<1.045*\R)*(1.05+0.15*abs(cos(10*y)))});
    \end{axis}
\end{tikzpicture}

在此处输入图片描述

答案4

挑剔的图形系统当然是picture模式。

在此处输入图片描述

\documentclass{article}


\begin{document}

\setlength{\unitlength}{3947sp}%
%

\hspace*{-100pt}\begin{picture}(7935,9057)(6076,-10606)
\thinlines
{\multiput(12001,-2836)(2.02703,-8.10811){38}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(12076,-3136)(6.00000,6.00000){26}{\makebox(1.6667,11.6667){\tiny.}}
\put(12226,-2986){\line( 0, 1){300}}
\put(12226,-2686){\line(-1, 0){150}}
\multiput(12076,-2686)(-3.75000,-7.50000){21}{\makebox(1.6667,11.6667){\tiny.}}
}%
{\put(11701,-5236){\line(-5, 2){969.828}}
\put(10726,-4861){\line(-1, 0){600}}
\put(10126,-4861){\line(-5,-1){1197.115}}
\put(8926,-5086){\line(-4,-3){516}}
\put(8401,-5461){\line(-3,-2){1211.539}}
\put(7201,-6286){\line(-3,-4){387}}
\put(6826,-6811){\line( 3,-4){225}}
\put(7051,-7111){\line( 1,-1){225}}
\put(7276,-7336){\line( 1, 1){225}}
\multiput(7501,-7111)(2.02703,-8.10811){38}{\makebox(1.6667,11.6667){\tiny.}}
\put(7576,-7411){\line( 2,-1){300}}
\put(7876,-7561){\line( 1, 0){300}}
\multiput(8176,-7561)(1.66667,-8.33333){46}{\makebox(1.6667,11.6667){\tiny.}}
\put(8251,-7936){\line( 3,-1){225}}
\put(8476,-8011){\line( 3, 2){225}}
\multiput(8701,-7861)(1.66667,-8.33333){46}{\makebox(1.6667,11.6667){\tiny.}}
\put(8776,-8236){\line( 1, 0){300}}
\put(9076,-8236){\line( 3, 1){225}}
\multiput(9301,-8161)(2.67857,-8.03571){29}{\makebox(1.6667,11.6667){\tiny.}}
\put(9376,-8386){\line( 1, 0){375}}
\put(9751,-8386){\line( 2, 1){600}}
\put(10351,-8086){\line( 4, 3){1032}}
\put(11401,-7336){\line( 3, 5){536.029}}
\multiput(11926,-6436)(1.38353,8.30116){64}{\makebox(1.6667,11.6667){\tiny.}}
\put(12001,-5911){\line( 0, 1){450}}
\put(12001,-5461){\line(-4, 3){300}}
}%
{\put(7126,-6361){\line(-6,-1){450}}
}%
{\put(8176,-5461){\line(-6, 1){1727.027}}
}%
{\put(8851,-5086){\line(-5, 3){2051.471}}
}%
{\put(9301,-4936){\line(-4, 5){1734.146}}
}%
{\put(9676,-4786){\line(-1, 3){930}}
}%
{\put(9976,-4786){\line( 0, 1){3000}}
}%
{\put(10426,-4861){\line( 1, 3){952.500}}
}%
{\put(10801,-4786){\line( 5, 6){817.623}}
}%
{\put(11326,-5011){\line( 5, 3){518.382}}
}%
{\put(12901,-4036){\line( 5, 3){375}}
}%
{\put(13051,-5236){\line( 3, 1){450}}
}%
{\put(8701,-8161){\line(-6,-5){450}}
\put(8251,-8536){\line(-6, 1){450}}
\put(7801,-8461){\line(-1, 1){375}}
\multiput(7426,-8086)(-1.38353,8.30116){64}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(7351,-7561)(7.50000,3.75000){21}{\makebox(1.6667,11.6667){\tiny.}}
\put(7501,-7486){\line(-5,-1){375}}
\put(7126,-7561){\line(-6, 5){450}}
\multiput(6676,-7186)(-3.12500,7.81250){49}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(6526,-6811)(3.12500,7.81250){49}{\makebox(1.6667,11.6667){\tiny.}}
\put(6676,-6436){\line(-1, 1){375}}
\multiput(6301,-6061)(-1.38353,8.30116){64}{\makebox(1.6667,11.6667){\tiny.}}
\put(6226,-5536){\line( 4, 5){300}}
\put(6526,-5161){\line(-2, 3){300}}
\multiput(6226,-4711)(1.37950,8.27702){73}{\makebox(1.6667,11.6667){\tiny.}}
\put(6301,-4111){\line( 5, 3){518.382}}
\put(6826,-3811){\line( 0, 1){375}}
\put(6826,-3436){\line( 1, 2){300}}
\put(7126,-2836){\line( 6, 1){450}}
\multiput(7576,-2761)(3.11866,7.79665){69}{\makebox(1.6667,11.6667){\tiny.}}
\put(7801,-2236){\line( 5, 3){375}}
\put(8176,-2011){\line( 6, 1){450}}
\put(8626,-1936){\line( 5, 3){606.618}}
\put(9226,-1561){\line( 5,-1){375}}
\put(9601,-1636){\line( 3,-1){450}}
\put(10051,-1786){\line( 4, 1){529.412}}
\put(10576,-1636){\line( 1, 0){375}}
\put(10951,-1636){\line( 6,-5){450}}
\put(11401,-2011){\line( 1, 0){450}}
\put(11851,-2011){\line( 5,-3){375}}
}%
{\put(13351,-3586){\line( 0,-1){225}}
\put(13351,-3811){\line( 4,-3){300}}
\multiput(13651,-4036)(3.11866,-7.79665){69}{\makebox(1.6667,11.6667){\tiny.}}
\put(13876,-4561){\line(-1,-2){300}}
\multiput(13576,-5161)(3.75000,-7.50000){41}{\makebox(1.6667,11.6667){\tiny.}}
\put(13726,-5461){\line( 0,-1){750}}
}%
{\put(12076,-5536){\line( 6, 1){450}}
\put(12526,-5461){\line( 3, 1){450}}
}%
{\multiput(11776,-5161)(2.03620,8.14479){66}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(11926,-4636)(-1.38889,8.33333){55}{\makebox(1.6667,11.6667){\tiny.}}
\put(11851,-4186){\line(-3, 5){363.971}}
\put(11476,-3586){\line( 0, 1){525}}
\multiput(11476,-3061)(1.38889,8.33333){55}{\makebox(1.6667,11.6667){\tiny.}}
\put(11551,-2611){\line( 3, 2){450}}
\put(12001,-2311){\line( 4, 1){300}}
\put(12301,-2236){\line( 2,-1){600}}
\multiput(12901,-2536)(4.68750,-7.03125){33}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(13051,-2761)(2.02703,-8.10811){38}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(13126,-3061)(3.11866,-7.79665){69}{\makebox(1.6667,11.6667){\tiny.}}
\put(13351,-3586){\line(-6, 1){668.919}}
}%
{\put(12976,-2836){\line(-3,-1){225}}
\put(12751,-2911){\line(-5,-2){375}}
\multiput(12376,-3061)(1.37950,-8.27702){73}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(12451,-3661)(-3.12500,-7.81250){49}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(12301,-4036)(7.50000,-3.75000){21}{\makebox(1.6667,11.6667){\tiny.}}
\put(12451,-4111){\line( 1, 0){225}}
\multiput(12676,-4111)(-1.37387,8.24324){91}{\makebox(1.6667,11.6667){\tiny.}}
}%
{\put(12826,-3511){\line( 0,-1){375}}
\put(12826,-3886){\line( 0,-1){225}}
\multiput(12826,-4111)(3.75000,-7.50000){21}{\makebox(1.6667,11.6667){\tiny.}}
\put(12901,-4261){\line(-2,-1){300}}
\put(12601,-4411){\line(-1, 0){ 75}}
}%
{\put(12451,-4186){\line( 1,-2){525}}
}%
{\put(12976,-5311){\line( 1,-1){525}}
\put(13501,-5836){\line( 1,-2){225}}
\put(13726,-6286){\line( 0,-1){300}}
\put(13726,-6586){\line(-1,-2){375}}
\put(13351,-7336){\line( 0,-1){675}}
\put(13351,-8011){\line(-1,-1){525}}
\put(12826,-8536){\line(-5,-2){594.828}}
\put(12226,-8761){\line(-4,-5){300}}
\put(11926,-9136){\line(-1, 0){300}}
\put(11626,-9136){\line(-3, 2){225}}
\put(11401,-8986){\line(-5,-3){518.382}}
\put(10876,-9286){\line(-6, 1){595.946}}
\put(10276,-9211){\line(-6, 5){450}}
\put(9826,-8836){\line( 0, 1){150}}
\put(9826,-8686){\line(-5, 3){518.382}}
}%
{\put(10651,-7861){\line(-5, 2){375}}
\put(10276,-7711){\line( 0, 1){150}}
\put(10276,-7561){\line(-1, 0){525}}
\multiput(9751,-7561)(-3.75000,7.50000){41}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(9601,-7261)(-7.50000,-3.75000){21}{\makebox(1.6667,11.6667){\tiny.}}
\put(9451,-7336){\line(-6, 1){450}}
\put(9001,-7261){\line( 0, 1){300}}
\multiput(9001,-6961)(-3.75000,7.50000){21}{\makebox(1.6667,11.6667){\tiny.}}
\put(8926,-6811){\line(-4,-1){529.412}}
\put(8401,-6961){\line(-1, 1){225}}
\multiput(8176,-6736)(-2.67857,8.03571){29}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(8101,-6511)(6.25000,6.25000){13}{\makebox(1.6667,11.6667){\tiny.}}
\put(8176,-6436){\line(-4,-1){300}}
\put(7876,-6511){\line(-1, 1){225}}
\multiput(7651,-6286)(-2.67857,8.03571){29}{\makebox(1.6667,11.6667){\tiny.}}
}%
{\put(11476,-7036){\line(-5,-2){375}}
\multiput(11101,-7186)(-6.00000,6.00000){26}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(10951,-7036)(-2.67857,8.03571){29}{\makebox(1.6667,11.6667){\tiny.}}
\put(10876,-6811){\line(-1,-1){225}}
\put(10651,-7036){\line(-5, 2){375}}
\put(10276,-6886){\line( 0, 1){300}}
\put(10276,-6586){\line(-1, 0){300}}
\put(9976,-6586){\line(-2, 1){300}}
\put(9676,-6436){\line( 0, 1){300}}
\put(9676,-6136){\line(-1, 0){300}}
\put(9376,-6136){\line(-1, 1){225}}
\put(9151,-5911){\line( 0, 1){150}}
\put(9151,-5761){\line(-5, 3){375}}
\multiput(8776,-5536)(-2.67857,8.03571){29}{\makebox(1.6667,11.6667){\tiny.}}
\multiput(8701,-5311)(4.68750,7.03125){33}{\makebox(1.6667,11.6667){\tiny.}}
}%
{\multiput(10426,-9211)(1.66667,-8.33333){46}{\makebox(1.6667,11.6667){\tiny.}}
\put(10501,-9586){\line(-4,-1){300}}
\multiput(10201,-9661)(-2.67857,-8.03571){29}{\makebox(1.6667,11.6667){\tiny.}}
\put(10126,-9886){\line( 3,-1){742.500}}
\put(10876,-10111){\line( 6,-5){531.148}}
\put(11401,-10561){\line( 1, 0){150}}
\put(11551,-10561){\line(-3, 5){311.029}}
\put(11251,-10036){\line( 2,-1){600}}
\multiput(11851,-10336)(3.75000,7.50000){21}{\makebox(1.6667,11.6667){\tiny.}}
\put(11926,-10186){\line(-2, 1){600}}
\put(11326,-9886){\line( 1, 0){525}}
\put(11851,-9886){\line(-5, 3){375}}
\put(11476,-9661){\line(-1, 0){750}}
\multiput(10726,-9661)(3.12500,7.81250){49}{\makebox(1.6667,11.6667){\tiny.}}
}%
{\put(11626,-9136){\line( 0,-1){375}}
\put(11626,-9511){\line(-3,-1){225}}
\multiput(11401,-9586)(3.75000,-7.50000){21}{\makebox(1.6667,11.6667){\tiny.}}
\put(11476,-9736){\line( 5,-1){677.885}}
\put(12151,-9886){\line( 1,-1){300}}
\put(12451,-10186){\line( 4, 1){300}}
\put(12751,-10111){\line(-1, 1){300}}
\put(12451,-9811){\line( 3,-1){450}}
\put(12901,-9961){\line( 0, 1){ 75}}
\put(12901,-9886){\line(-2, 1){450}}
\put(12451,-9661){\line( 3, 2){225}}
\put(12676,-9511){\line( 0, 1){150}}
\put(12676,-9361){\line(-5,-1){750}}
\multiput(11926,-9511)(1.66667,8.33333){46}{\makebox(1.6667,11.6667){\tiny.}}
}%
{\put(6076,-1561){\line( 1, 0){7935}}
\put(14011,-1561){\line( 0,-1){9045}}
\put(14011,-10606){\line(-1, 0){7935}}
\put(6076,-10606){\line( 0, 1){9045}}
}%
\end{picture}\hspace*{-100pt}


\end{document}

相关内容