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}

\begin{document}

\definecolor{color1}{RGB}{42,137,149}
\definecolor{color2}{RGB}{11,59,93}

\begin{tikzpicture}
\pgfpathmoveto{\pgfpointorigin}
\pgfpathlineto{\pgfpoint{0}{3cm}}
\pgfpathlineto{\pgfpoint{3cm}{1.5cm}}
\pgfpathclose
\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.

I've changed the colors and the effect a bit. Here are two versions:

\documentclass[tikz]{standalone}

\begin{document}
\begin{tikzpicture}
\end{tikzpicture}

\end{document}


And in the lower level version

\documentclass[tikz]{standalone}

\begin{document}

\begin{tikzpicture}
\pgfpathmoveto{\pgfpointorigin}
\pgfpathlineto{\pgfpoint{0}{3cm}}
\pgfpathlineto{\pgfpoint{3cm}{1.5cm}}
\pgfpathclose

• Thank you for both anwser. I was not that far off.Any reason why applying \pgfshadepath before \pgfsetfading doesn't work? – Snow Aug 26 '16 at 13:32
• @Snow Once the path is used it is thrown away. shadepath or usepath uses the path. – percusse Aug 26 '16 at 13:53