From da9dec4513d30ed4187fb1944c5abeb403b30b4b Mon Sep 17 00:00:00 2001 From: abe33 Date: Mon, 1 Jun 2015 15:55:18 +0200 Subject: [PATCH] :bug: Fix typo in method name --- lib/mixins/dom-styles-reader.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mixins/dom-styles-reader.coffee b/lib/mixins/dom-styles-reader.coffee index 125e52be..07d32be7 100644 --- a/lib/mixins/dom-styles-reader.coffee +++ b/lib/mixins/dom-styles-reader.coffee @@ -80,7 +80,7 @@ class DOMStylesReader extends Mixin [r,g,b,a,hue] = [r,g,b,a,hue].map(Number) - [r,g,b] = rotateā€”(r,g,b,hue) + [r,g,b] = rotate(r,g,b,hue) if isNaN(a) "rgb(#{r}, #{g}, #{b})" @@ -108,7 +108,7 @@ rotate = (r,g,b,angle) -> hueRotateR = 0.143 hueRotateG = 0.140 hueRotateB = 0.283 - + cos = Math.cos(angle * Math.PI / 180) sin = Math.sin(angle * Math.PI / 180) matrix[0] = lumR + (1 - lumR) * cos - (lumR * sin)