How to use Mesh to paint weight to another
You could use dynamic paint to do that. Make the plane a canvas, and the pink object a brush, and set the plane's surface type to Weight.

Note: you should be aware that the resolution of the weight painting depends on the subdivision of the plane.