- Questo topic ha 5 risposte, 6 partecipanti ed è stato aggiornato l'ultima volta 11 anni, 8 mesi fa da .
-
Topic
-
[attachment=1230]pre.png[/attachment]`
\documentclass{standalone}
\usepackage{tikz}
\usepackage{poisson}% http://tex.stackexchange.com/q/185419/13304
\usepackage{charter}\usetikzlibrary{backgrounds,
fadings,
shapes.symbols,
}\pgfdeclarelayer{stars}
\pgfsetlayers{background,stars,main}\tikzset{snow/.style={
starburst, random starburst=#1,
inner sep=2.75pt,scale=0.15,
inner color=Snow1, outer color= Snow3,
},%
lights/.style={
starburst, random starburst=#1,
inner sep=2.75pt,scale=0.15,
inner color=yellow, outer color= orange!80!yellow,
},%
}%\newcommand\fadingtext[3][]{%
\begin{tikzfadingfrompicture}[name=fading letter]%
\node[text=transparent!0,inner xsep=0pt,outer xsep=0pt,#1] {#3};%
\end{tikzfadingfrompicture}%
\begin{tikzpicture}[baseline=(textnode.base)]%
\node[inner sep=0pt,outer sep=0pt,#1](textnode){\phantom{#3}};%
\shade[path fading=fading letter,#2,fit fading=false]%
(textnode.south west) rectangle (textnode.north east);%
\end{tikzpicture}%
}%\begin{document}%
\edef\mylist{\poissonpointslist{12}{4}{0.45}{50}}%
\edef\myotherlist{\poissonpointslist{12}{4}{0.55}{20}}%
\begin{tikzpicture}[inner sep=0pt]
\begin{pgfonlayer}{background}
\path[bottom color=blue!70!black,top color=blue!70!black!80] (0,0)rectangle(12,4);
\end{pgfonlayer}\node[minimum width=12cm,minimum height=4cm,anchor=south west](txt) at (0,0){\fontsize{50}{42}\selectfont Happy 2015!};
\node[yshift=1.5pt] at (txt.center){\fadingtext{top color=red!65,bottom color=red!80!black}{\fontsize{49.2}{42}\selectfont Happy 2015!}};\begin{pgfonlayer}{stars}
\foreach \xpos/\ypos in \mylist {
\node[snow] at (\xpos,\ypos) {};
}
\foreach \xpos/\ypos in \myotherlist {
\node[lights] at (\xpos,\ypos) {};
}
\end{pgfonlayer}
\end{tikzpicture}%
\end{document}
`
- Devi essere connesso per rispondere a questo topic.