Browse files

Improve color equality check

  • Loading branch information...
jonastreub committed Jun 12, 2017
1 parent e42c966 commit 266546df48dae55433f8f1ed8e85002669f56364
Showing with 4 additions and 4 deletions.
  1. +4 −4 framer/
@@ -303,10 +303,10 @@ class exports.Color extends BaseClass
colorA = new Color(colorA)
colorB = new Color(colorB)
return false if colorA.r isnt colorB.r
return false if colorA.g isnt colorB.g
return false if colorA.b isnt colorB.b
return false if colorA.a isnt colorB.a
return false if Math.round(colorA.r) isnt Math.round(colorB.r)
return false if Math.round(colorA.g) isnt Math.round(colorB.g)
return false if Math.round(colorA.b) isnt Math.round(colorB.b)
return false if Math.round(colorA.a) isnt Math.round(colorB.a)
return true
@rgbToHsl: (a, b, c) ->

0 comments on commit 266546d

Please sign in to comment.