Gradient+scale on curved surface

Trying to figure out how to do a custom shape pattern (custom curve shape)
that would gradually get denser and also follow the curve and witch of a surface.

I guess i can do it by flattening and doing it all in illustrator, but would be great to learn how
to do it within grasshopper+rhino.

any suggestions?

islamic-pattern2 32 33 Gradient pattern on surface.3dm (2.2 MB)