Inkscape, MESH, gradient, automatic
And imagine such a facility in mesh. We have an object and we want to transfer the colors to the circle:

Then we copy the selection of the mesh gradient and transfer it to the copied object (apple) and it transfers the colors from the points to the target object:
<!--