@@ -62,8 +62,8 @@ export function toGamutCSSColor4(
6262 let end = candidate . c ;
6363 let clipped ;
6464 /* Corresponds to about 10 steps */
65- let ε = ( ranges . c [ 1 ] - ranges . c [ 0 ] ) / 1000 ;
66- while ( end - start > ε ) {
65+ let epsilon = ( ranges . c [ 1 ] - ranges . c [ 0 ] ) / 1000 ;
66+ while ( end - start > epsilon ) {
6767 candidate . c = ( start + end ) * 0.5 ;
6868 if ( inDestinationGamut ( candidate ) ) {
6969 start = candidate . c ;
@@ -125,23 +125,23 @@ export function toGamutCSSColor4Smooth(
125125
126126 let start = 0 ;
127127 let end = candidate . c ;
128- let ε = ( ranges . c [ 1 ] - ranges . c [ 0 ] ) / 1000 ;
128+ let epsilon = ( ranges . c [ 1 ] - ranges . c [ 0 ] ) / 1000 ;
129129 let lower_bound_in_gamut = true ;
130130 let clipped = clipToGamut ( candidate ) ;
131131 let e = delta ( clipped , candidate ) ;
132132 if ( e < jnd ) {
133133 return clipped ;
134134 }
135135
136- while ( end - start > ε ) {
136+ while ( end - start > epsilon ) {
137137 candidate . c = ( start + end ) * 0.5 ;
138138 if ( lower_bound_in_gamut && inDestinationGamut ( candidate ) ) {
139139 start = candidate . c ;
140140 } else {
141141 clipped = clipToGamut ( candidate ) ;
142142 e = delta ( candidate , clipped ) ;
143143 if ( e <= jnd ) {
144- if ( jnd - e < ε ) {
144+ if ( jnd - e < epsilon ) {
145145 return clipped ;
146146 } else {
147147 lower_bound_in_gamut = false ;
@@ -208,8 +208,8 @@ export function toGamutFuzzy(
208208 let end = candidate . c ;
209209
210210 /* Corresponds to about 10 steps */
211- let ε = ( ranges . c [ 1 ] - ranges . c [ 0 ] ) / 1000 ;
212- while ( end - start > ε ) {
211+ let epsilon = ( ranges . c [ 1 ] - ranges . c [ 0 ] ) / 1000 ;
212+ while ( end - start > epsilon ) {
213213 candidate . c = ( start + end ) * 0.5 ;
214214 clipped = clipToGamut ( candidate ) ;
215215 if (
@@ -274,9 +274,9 @@ export function toGamutCLReduce(
274274 candidate . l * ( 1 - alpha ) ;
275275 let endC = candidate . c ;
276276 let endL = candidate . l ;
277- let εC = ( ranges . c [ 1 ] - ranges . c [ 0 ] ) / 1000 ;
278- let εL = ( ranges . l [ 1 ] - ranges . l [ 0 ] ) / 1000 ;
279- while ( endC - startC > εC || endL - startL > εL ) {
277+ let epsilonC = ( ranges . c [ 1 ] - ranges . c [ 0 ] ) / 1000 ;
278+ let epsilonL = ( ranges . l [ 1 ] - ranges . l [ 0 ] ) / 1000 ;
279+ while ( endC - startC > epsilonC || endL - startL > epsilonL ) {
280280 candidate . c = ( startC + endC ) * 0.5 ;
281281 candidate . l = ( startL + endL ) * 0.5 ;
282282 if ( inDestinationGamut ( candidate ) ) {
0 commit comments