104k views
0 votes
Unit 5 post university

1 Answer

4 votes


\documentclass{article}</p><p>\usepackage{tikz}</p><p>\begin{document}</p><p>\begin{tikzpicture}[scale=0.5]</p><p>\draw[fill=red!80!black] (0,0) .. controls (1,1) and (2,1) .. (3,0) .. controls (3,-1) and (2,-2) .. (1,-2) .. controls (0,-2) and (-1,-1) .. (0,0);</p><p>\foreach \i in {1,...,20} {</p><p> \pgfmathsetmacro\r{rand*.3+.9}</p><p> \pgfmathsetmacro\opacity{rand*.5+.5}</p><p> \pgfmathsetmacro\blur{rand*2}</p><p> \draw[red!70!black, blur shadow={shadow blur steps=5, shadow xshift=0.5ex, shadow yshift=-0.5ex, shadow blur radius=\blur pt, opacity=\opacity}] (0,0) .. controls (1,1) and (2,1) .. (3,0) .. controls (3,-1) and (2,-2) .. (1,-2) .. controls (0,-2) and (-1,-1) .. (0,0) [scale=\r];</p><p>}</p><p>\end{tikzpicture}</p><p>\end{document}

User Damores
by
8.3k points