Skip to content

Commit

Permalink
Tweak foggy gradients
Browse files Browse the repository at this point in the history
  • Loading branch information
cdlm committed Mar 1, 2018
1 parent 77a059e commit c25e51c
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions pharo-titlepage.sty
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
\RequirePackage{xcolor}
\RequirePackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{shadings}
\usetikzlibrary{svg.path}

% fixup TikZ page coordinates for memoir stock & trimming
Expand Down Expand Up @@ -133,44 +134,49 @@
\coordinate (stocktopleft) at ([left=\trimedge,above=\trimtop]current page.north west);
\coordinate (stockbottomright) at ([right=\stockwidth,below=\stockheight]stocktopleft);

\coordinate (horizon) at ($ (top)!.618!(center) $);
\coordinate (horizon) at ($ (center)!.618!(top) $);
\coordinate (depths) at ($ (center)!.618!(bottom) $);

\newcommand\beaconscaling{(.618\paperheight/120pt)} % golden ratio factor & approx. height of beacon tower
\coordinate (beacon) at ($ (depths -| left) + (-10.1,-2.5) $);
\coordinate (beacon) at ($ (depths -| left) + (-9.75,-2.5) $);

\node[anchor=north east] at ($ (horizon -| right) + (-.1\pagewidth,-2cm) $) {
\begin{varwidth}{.8\pagewidth}
\flushright \fontsize{50pt}{60pt}\sffamily\bfseries\color{white}
\node[anchor=north east] at ($ (horizon -| right) + (-.1\pagewidth,0cm) $) {
\begin{varwidth}{.6\pagewidth}
\flushright \fontsize{50pt}{60pt}\sffamily\color{PharoDarkBlue}
\@title
\end{varwidth}
};

\node[anchor=south east] at ($ (depths -| right) + (-.1\pagewidth,1cm) $) {
\begin{varwidth}{.8\pagewidth}
\flushright \HUGE\sffamily\color{white}
\flushright \HUGE\sffamily\color{PharoDarkBlue!75!PharoBlue!50!Shade}
\@author
\end{varwidth}
};

\node[anchor=north east] at ($ (depths -| right) + (-.1\pagewidth,-.5cm) $) {
\begin{varwidth}{.8\pagewidth}
\flushright \huge\sffamily\color{PharoDarkBlue!50!PharoBlue!50!LightShade}
\flushright \huge\sffamily\color{PharoDarkBlue!75!PharoBlue!50!Shade}
\ifx\@empty\@series\else\@series\titlebreak\fi
\@date
\end{varwidth}
};

\begin{pgfonlayer}{background}
\shade[bottom color=LightShade, top color=Shade] (stocktopleft) rectangle (depths -| stockbottomright);
% \fill[mid] (horizon -| stocktopleft) rectangle (depths -| stockbottomright);
\shade[bottom color=bot, top color=LightShade] (depths -| stocktopleft) rectangle (stockbottomright);
\shade[
upper left = Shade, upper right = Shade!25!PharoBlue,
lower left = LightShade!75!PharoBlue, lower right = LightShade
] (stocktopleft) rectangle (depths -| stockbottomright);
\shade[
upper left = LightShade!75!PharoBlue, upper right = LightShade,
lower left = PharoDarkBlue!75!Shade, lower right = PharoBlue
] (depths -| stocktopleft) rectangle (stockbottomright);

\begin{scope}[
transform canvas={shift=(beacon)},
scale=\beaconscaling]

\pharobeacon@tikz[bot]
\pharobeacon@tikz[PharoBlue!75!PharoDarkBlue!75!Shade]

\end{scope}
\end{pgfonlayer}
Expand Down

0 comments on commit c25e51c

Please sign in to comment.