From a78276448960807c92582b7a654038995140af09 Mon Sep 17 00:00:00 2001 From: Matthew Dean Date: Mon, 11 Feb 2019 17:13:50 -0800 Subject: [PATCH] Fixes #3338 - missed mix() function --- lib/less/functions/color.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/less/functions/color.js b/lib/less/functions/color.js index ceca8c741..a9b5198e8 100644 --- a/lib/less/functions/color.js +++ b/lib/less/functions/color.js @@ -299,16 +299,12 @@ colorFunctions = { // http://sass-lang.com // mix: function (color1, color2, weight) { - if (!color1.toHSL || !color2.toHSL) { - console.log(color2.type); - console.dir(color2); - } if (!weight) { weight = new Dimension(50); } var p = weight.value / 100.0; var w = p * 2 - 1; - var a = color1.toHSL().a - color2.toHSL().a; + var a = toHSL(color1).a - toHSL(color2).a; var w1 = (((w * a == -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0; var w2 = 1 - w1;