How to apply colour to these models

Dears, I’m trying to use grasshopper, it’s too fashinating!
I’ made this model, starting from a squared grid.
My idea is to apply gradient colour to each piramid and than bake it so the final model will have colours applied on each piramid.
How may I do it?

Hi @fnsbury,

The most simple way is to make a mesh from your geometry.
afbeelding
gradient.gh (10.0 KB)