渲染更逼真的冰淇淋

渲染更逼真的冰淇淋

我仍在排版考试,这次我想看看我是否能够重新制作冰淇淋。

在此处输入图片描述

虽然我的临时解决方案看起来像这样

在此处输入图片描述

最大的问题是,我的解决方案——找不到更好的词来形容——看起来清楚的。有没有什么方法可以为填充添加一些纹理,使其看起来更逼真一些?

\documentclass[tikz,border=1mm]{standalone}

\definecolor{brownMedium}{HTML}{623d22}
\definecolor{brownLight}{HTML}{a78d7b}
\definecolor{brownDark}{HTML}{573722}

\begin{document}

    \begin{tikzpicture}
        \edef\w{10} \edef\h{6}

        \begin{scope}[shift={(0,0.5)},scale=1.1]
            \draw[color=brownDark, fill=brownDark,thick] (0,\w) -- (0,0) -- (\w,0)  -- (\w,\w);
            \draw[color=brownDark, fill=brownDark, thick] (\w,\w) arc(0:180:0.5*\w);
        \end{scope}

        \draw[color=brownMedium, thick, fill=brownMedium] (0,\w) -- (0,0) -- (\w,0)  -- (\w,\w);
        \draw[color=brownMedium,thick, fill=brownMedium] (\w,\w) arc(0:180:0.5*\w);

        \draw[color = brownLight, fill=brownLight, thick] (0.65*\w,-\h) arc(0:-180:0.15*\w);
        \draw[fill=brownLight, color = brownLight, thick] (0.65*\w,0) -- (0.65*\w,-\h) --  (0.35*\w,-\h) -- (0.35*\w,0);
    \end{tikzpicture}

\end{document}

答案1

\documentclass[tikz,border=1mm]{standalone}
\begin{document}

\begin{tikzpicture}

\definecolor{brownMedium}{HTML}{623d22}
\definecolor{brownLight}{HTML}{a78d7b}
\definecolor{brownDark}{HTML}{573722}

%stick
\fill[brownLight] 
(-1,-3.17) -- (-1,-8.48) arc (-140:-39:1.2) -- (0.8,-3.16) --cycle;
%shadow
\fill[brownLight!95!black,rounded corners] 
(0.8,-3.15) -- (0.8,-3.9) -- (0.5,-4.3) -- (-0.8,-4.3) -- (-1,-4.1) -- (-1,-3.1);
%ice cream
\fill[brownDark] 
(-4.2,5.2) -- (-4.2,-3.1) -- (-3.96,-3.24) -- (3.26,-3.21) -- (3.86,-2.9) -- (3.84,5.8) .. controls (3.54,9.77) and (-3.4,10.05) .. cycle;
\fill[brownMedium]
(3.21,5.5) -- (3.26,-3.21) -- (-3.96,-3.24) -- (-4,5.5) .. controls (-2.2,10.1) and (2.41,9.1) .. cycle;

\end{tikzpicture}
\end{document}

冰淇淋略有改进

相关内容