Changing color gradient base on curves on a surface

I am trying to change color gradient on a gridded surface in grasshopper based on 4 different curves, where when the surface meets the curve would be where color would merge and have gradient, I did try a few methods but none seems to work.

  • Basically I am trying to make panels that have 3 different colors gradients on them, blue, yellow and green, but they would merge color where the curves are. please see my draft script. Thanks!

Gradient (1.5 MB)

Gradient Paneling edited (13.0 KB)

Hi Quan,

Thank you for getting back to me, that,s exactly what I want! Thanks a million!