[Tex/LaTex] How to set a background image on a custom background color in beamer


I haven't found this question anywhere and therefore no answer to it.

I have a beamer presentation where I use \usebackgroundtemplate in order to put a background image. Now on some slides I would like the part left out by the image to be on a backround color other than white. I tried several positions of \setbeamercolor (inside/outside the frame, in a group with the frame, included in curly brackets, etc.) but nothing seems to work. It looks to me that \usebackgroundtemplate overrides the command \setbeamercolor.

Here is a minimal example:


\title{\textcolor{black}{Playa Turquesa - Dominikanische Republik}}

\setbeamercolor{background canvas}{bg=}



%\setbeamercolor{background}{bg=violet} % just a try, doesn't work
%\setbeamercolor{background canvas}{bg=violet} % this doesn't work either
Frame text here


The image is a .png with transparent background, so I would assume it should let see what's behind it.

Is there an easy way to do this?

Edited the question, thank you.

Ophaniel is my own theme that I did by just modifying another one. So I guess the code is not very compilable, if you don't have it. I'm not sure if there's anything there that could disturb the functioning of \setbeamercolor{background}. Should I publish the theme as well for you to be able to compile it?

Best Answer




\setbeamertemplate{background canvas}{%





enter image description here