Permalink
Browse files

Add multiply alpha function on Color class

(helper for importing gradients)
  • Loading branch information...
jonastreub committed Jun 13, 2017
1 parent 34d048e commit 8df882d5b170212f0d0d5895555b89cf84455b1c
Showing with 3 additions and 0 deletions.
  1. +3 −0 framer/Color.coffee
View
@@ -160,6 +160,9 @@ class exports.Color extends BaseClass
b: @b
a: alpha
multiplyAlpha: (alpha) ->
return @alpha(@a * alpha)
transparent: ->
@alpha(0)

0 comments on commit 8df882d

Please sign in to comment.