The _getColorInBetweenColorStops interpolated between color stops with the order of stops inverted between the two it should interpolate with (comparing with _getColorInBetweenOpacityStops confirms this as well).
This means that if there is more than two stops in the gradient, the second color in the gradient never appears and the third one takes its place, and the colors are on the wrong stop after that.
The
_getColorInBetweenColorStops
interpolated between color stops with the order of stops inverted between the two it should interpolate with (comparing with_getColorInBetweenOpacityStops
confirms this as well). This means that if there is more than two stops in the gradient, the second color in the gradient never appears and the third one takes its place, and the colors are on the wrong stop after that.Before fix
After fix
File: gradients_multiple_stops.json