From fd35225bf57f50eed4bcb43e9955c5221789195d Mon Sep 17 00:00:00 2001 From: Lena Schimmel Date: Sun, 30 Jun 2019 00:50:47 +0200 Subject: [PATCH] Optimized colors and timings. --- node/tool/browser.js | 2 +- node/tool/flags.js | 2 +- node/tool/recolor.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/node/tool/browser.js b/node/tool/browser.js index bc6d63e..afb748c 100644 --- a/node/tool/browser.js +++ b/node/tool/browser.js @@ -37,7 +37,7 @@ window.queer.initFlagAnimation = function () { } } - setInterval(nextFlag, 3500); + setInterval(nextFlag, 4500); } window.queer.initPreviewLogo = function() { diff --git a/node/tool/flags.js b/node/tool/flags.js index 04b9221..abc5660 100644 --- a/node/tool/flags.js +++ b/node/tool/flags.js @@ -118,7 +118,7 @@ const lebsian6 = "#C66A68"; const lebsian7 = "#933514"; const polyamRed = "#ED4024"; const polyamBlue = "#1432F5"; -const polyamYellow = "#FFFD52"; +const polyamYellow = "#EEEA49"; const agenderGrey = "#A0A0A0"; const agenderGreen = "#CDF29F"; const kinkBlue = "#0E24C0"; diff --git a/node/tool/recolor.js b/node/tool/recolor.js index f3594af..ee5cf3c 100644 --- a/node/tool/recolor.js +++ b/node/tool/recolor.js @@ -83,7 +83,7 @@ method.changeGradients = async function(flag, animate = false) { var letter = id.substring(0,2); this.colorLetterGradient(gradient, flag[letter], 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); } 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 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 > 100) nl = 100;