2D gradient?

Hey everyone,

I’m curious if there’s currently a way to make gradients with arbitary number of (x, y)-points with colour assigned to each one, similar to the freeform gradient tool in Illustrator? Thanks so much.