Skip to content
Permalink
Browse files

Add multiply alpha function on Color class

(helper for importing gradients)
  • Loading branch information
Jonas Treub
Jonas Treub committed Jun 28, 2017
1 parent 34d048e commit 8df882d5b170212f0d0d5895555b89cf84455b1c
Showing with 3 additions and 0 deletions.
  1. +3 −0 framer/Color.coffee
@@ -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.
You can’t perform that action at this time.