Changeset 46769 for branches/5.3
- Timestamp:
- 11/24/2019 11:03:05 AM (5 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
-
branches/5.3/src/wp-content/themes/twentytwenty/assets/js/color-calculations.js
r46571 r46769 39 39 maxSaturation = 100, 40 40 minLightness = 30, 41 maxLigh ness = 80,41 maxLightness = 80, 42 42 stepSaturation = 2, 43 43 stepLightness = 2, … … 87 87 // We're using `for` loops here because they perform marginally better than other loops. 88 88 for ( s = minSaturation; s <= maxSaturation; s += stepSaturation ) { 89 for ( l = minLightness; l <= maxLigh ness; l += stepLightness ) {89 for ( l = minLightness; l <= maxLightness; l += stepLightness ) { 90 90 pushColor( s, l ); 91 91 } … … 97 97 } ); 98 98 99 // If we have AAA-compliant colors, al pways prefer them.99 // If we have AAA-compliant colors, always prefer them. 100 100 if ( aaa.length ) { 101 101 this.accentColorsArray = aaa;
Note: See TracChangeset
for help on using the changeset viewer.