- Timestamp:
- 11/18/2019 05:05:23 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/assets/js/color-calculations.js
r46571 r46747 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.