Trying to mimic a titlepage in a word document. I figured out how to do a custom shading, but can't figure out how to apply a fading (transparency) on top of it
Here is a MWE (except for the fading part).
\documentclass[paper=a4]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{shadings}
\begin{document}
\definecolor{color1}{RGB}{42,137,149}
\definecolor{color2}{RGB}{11,59,93}
\pgfdeclarehorizontalshading{myshading}{100bp}{color(0cm)=(color1); color(16bp)=(color1); color(100bp)=(color2)}
\pgfdeclarehorizontalshading{myshadingtransparent}{100bp}{color(0cm)=(pgftransparent!0); color(16bp)=(pgftransparent!0); color(100bp)=(pgftransparent!50)}
\pgfdeclarefading{fade1}{\pgfuseshading{myshadingtransparent}}
\begin{tikzpicture}
\pgfpathmoveto{\pgfpointorigin}
\pgfpathlineto{\pgfpoint{0}{3cm}}
\pgfpathlineto{\pgfpoint{3cm}{1.5cm}}
\pgfpathclose
\pgfshadepath{myshading}{0}
\pgfsetfading{fade1}{}
\end{tikzpicture}
\end{document}
By the way, do I really have to do everything with pgf, or is it partly possible using tikz instructions? I tried mixing the two but my shading would'nt apply.