From e11b39a248dd133f8ac08782935d0b522dd85fd8 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Mon, 18 Apr 2016 09:22:28 +0200 Subject: Fix rgb values Fix was required because values was too big for rgb and breaking the brightness calculation. Now we have the initial sat (70%) and the reduction to 60 if too bright working again. --- core/js/placeholder.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/js/placeholder.js b/core/js/placeholder.js index da721ac5bcb..1b03a28ecca 100644 --- a/core/js/placeholder.js +++ b/core/js/placeholder.js @@ -92,7 +92,7 @@ // Init vars var result = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var rgb = [0, 0, 0]; - var sat = 80; + var sat = 70; var lum = 68; var modulo = 16; @@ -106,6 +106,12 @@ for(var count=1;count