Question
Gradient: find dominant color by spread.
Hello dear scripting professionals.
Given the case that a shape is filled with a gradient and this gradient is composed of known standardized swatch colors (and only those swatch colors, 100% opacity), what is the way to use gradient stop rampPoints, midPoints, anything else, to determine the most dominant color by how much this color spreads across the gradient and takes up the most spectrum.
Thanks to anyone taking a look!

