I have a rectangle (4-node path) filled with a gradient which I now want to bend along its vertical axis in such a way that it resembles the curvature of another Bezier curve that bends in two places. The linear gradient axis should, at every point of the new non-rectangular path, be perpendicular to the Bezier curve (see image).
The picture shows an approximation of what I'd like to achieve, the missing space should be interpolated from the other blocks. I tried Pattern along Path but I seem to be using it the wrong way.