Gradient Depending on Distance of Points from Center

Hi! Im trying to make a color gradient depending on the distance of the center point of a sphere to the points of a deconstructed mesh. The idea is to have something similar as it is shown on the photo! Can anybody help me out please? I have been trying but havent made it to the result, just a beginner of grasshopper!

Screenshot 2023-11-22 at 18.22.31 (19.4 KB) (20.2 KB)

Note: here the ‘center of the sphere’ is the centroid of the mesh - you can substitute that point with whichever other point you’re measuring the distance to.


1 Like

Thank you René and Joseph! Very thankful!

1 Like