Hi Fabian,
Nice idea. I think this can be implemented in the new DynamicBackground tool (the successor to DBE), which will be released after version 1.8.5 of PixInsight, probably in September. Thank you.
A linear gradient with arbitrary orientation can be generated quite easily with PixelMath. I'll work on a general expression and will post it here.