in packages/synchro-charts/src/components/charts/sc-line-chart/line-coloration.frag.ts [21:35]
void main() {
for(int i = 0; i < MAX_NUM_TOTAL_THRESHOLD_BAND; i++) {
bool isRangeBreached = yPositionPx > thresholdBands[i].lower / yPixelDensity
&& yPositionPx < thresholdBands[i].upper / yPixelDensity;
bool isEqualsThreshold = thresholdBands[i].lower == thresholdBands[i].upper;
bool isEqualsThresholdBreached = yPositionPx == thresholdBands[i].upper;
if (isRangeBreached || (isEqualsThreshold && isEqualsThresholdBreached)) {
gl_FragColor = vec4(thresholdBands[i].color / 255.0, 1.0);
break;
} else {
gl_FragColor = vec4(vColor, 1.0);
}
}
}