I am trying to split the background colour of the Feynamn diagram below into 2 different colours with (for example) red in the top half and green in the bottom half. Note that both horizontal lines in the diagram are connected to each other (the gluon line) and therefore, it should remain with a single tikz picture.
Note that, in general, I would like to be able to control the height of each background colour (top and bottom) so they would not necessarily be 50-50. So far I've only been able to apply a single colour to the entire background as the code below shows:
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\usepackage[compat=1.1.0]{tikz-feynman}
\begin{tikzpicture}[
show background rectangle,
background rectangle/.style={fill=red},
color=black]
\begin{feynman}
\vertex (a1);
\vertex[right=3cm of a1] (a2);
\vertex[below=2cm of a1] (b1);
\vertex[below=2cm of a2] (b2);
\diagram* { (a2) -- [fermion] (a1), (b1) -- [fermion] (b2), (b1) -- [gluon] (a2) };
\end{feynman}
\end{tikzpicture}
\end{document}