Untested:
- Create a colormap with N colors Colormaps and Colorscales · Colors, pass it as
color_palettetoplot. - Determine extrema of your gradients.
- Map gradient values to colormap indices
1:Nsomething likegrad -> round(Int, (grad-gradmin)/(gradmax-gradmin) * (N-1) + 1) - Get colormap index for each triangle’s gradient, pass as
fillcolororseriescolortoplot