Optimized colors and timings.

This commit is contained in:
Lena Schimmel 2019-06-30 00:50:47 +02:00
parent 57dc0dea2b
commit fd35225bf5
3 changed files with 5 additions and 5 deletions

View file

@ -37,7 +37,7 @@ window.queer.initFlagAnimation = function () {
} }
} }
setInterval(nextFlag, 3500); setInterval(nextFlag, 4500);
} }
window.queer.initPreviewLogo = function() { window.queer.initPreviewLogo = function() {

View file

@ -118,7 +118,7 @@ const lebsian6 = "#C66A68";
const lebsian7 = "#933514"; const lebsian7 = "#933514";
const polyamRed = "#ED4024"; const polyamRed = "#ED4024";
const polyamBlue = "#1432F5"; const polyamBlue = "#1432F5";
const polyamYellow = "#FFFD52"; const polyamYellow = "#EEEA49";
const agenderGrey = "#A0A0A0"; const agenderGrey = "#A0A0A0";
const agenderGreen = "#CDF29F"; const agenderGreen = "#CDF29F";
const kinkBlue = "#0E24C0"; const kinkBlue = "#0E24C0";

View file

@ -83,7 +83,7 @@ method.changeGradients = async function(flag, animate = false) {
var letter = id.substring(0,2); var letter = id.substring(0,2);
this.colorLetterGradient(gradient, flag[letter], animate); this.colorLetterGradient(gradient, flag[letter], animate);
if(animate) if(animate)
await sleep(35); // time per gradient await sleep(20); // time per gradient
} }
} }
} }
@ -98,7 +98,7 @@ method.colorLetter = async function(letterToColor, targetColor, animate = false)
this.colorLetterGradient(gradient, targetColor, animate); this.colorLetterGradient(gradient, targetColor, animate);
} }
if(animate) if(animate)
await sleep(35); // time per gradient await sleep(20); // time per gradient
} }
} }
} }
@ -140,7 +140,7 @@ method.colorLetterGradient = async function(gradient, targetColor, animate = fal
var nh = th; var nh = th;
var ns = ts; //(ss - diffSaturation) * 1.15 * ts / 100; var ns = ts; //(ss - diffSaturation) * 1.15 * ts / 100;
var nl = tl - (tl - sl) * (0.5 - tl * 0.0025); var nl = tl - (tl - sl) * (0.75 - tl * 0.0055) * (0.75 - (100 - tl) * 0.0035);
if(nl < 0) nl = 0; if(nl < 0) nl = 0;
if(nl > 100) nl = 100; if(nl > 100) nl = 100;