Re: [Concorso] TikZ nella gallery del sito

#93231
Up
0
Down
::


Onore ai vincitori!! 🙂

Ora che il concorso è finito, posso svelare cosa avrei presentato se avessi partecipato. L’idea non è proprio originale (vedi qui), ma è originale la colorazione 😉 `
\documentclass

{standalone}
\usepackage{tikz}

\usetikzlibrary{lindenmayersystems,shadows}

\pgfdeclarelindenmayersystem{Sierpinski triangle}{
\symbol{X}{\pgflsystemdrawforward}
\symbol{Y}{\pgflsystemdrawforward}
\rule{X -> X-Y+X+Y-X}
\rule{Y -> YY}
}%

\tikzset{
l-system={step=2cm/(2^4),
order=4,
angle=-120},
Sierpinski shadow/.style={
drop shadow={%
shadow xshift=.1ex,
shadow yshift=-.1ex
}
}
}

\begin{document}%

\begin{tikzpicture}
\clip [inner color=green!80!black,
outer color=orange]
(0,0) — ++(0:2cm) — ++(120:2cm) — cycle;
\path (0,0) l-system
[l-system={Sierpinski triangle, axiom=X},
inner color=orange!20,
outer color=yellow,
Sierpinski shadow];
\end{tikzpicture}

\end{document}
`

[attachment=970]ScreenShot2014-03-25at7.30.46AM.png[/attachment]

Ciao
Claudio

Attachments:
You must be logged in to view attached files.

Go to top