Skip to content

Commit

Permalink
🐛 Fix typo in method name
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Jun 1, 2015
1 parent 3859ee8 commit da9dec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mixins/dom-styles-reader.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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})"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit da9dec4

Please sign in to comment.