Permalink
Browse files

make invalid color strings transparent conforming to css

  • Loading branch information...
J.P.P Treub
J.P.P Treub committed Jan 4, 2016
1 parent 209a50d commit f797a36bc5e577609e64e08610ea862a793db3b7
Showing with 7 additions and 0 deletions.
  1. +7 −0 framer/Color.coffee
@@ -333,6 +333,13 @@ inputData = (color, g, b, alpha) ->
if typeof color == "string"
color = stringToObject(color)
if !color
color =
r:0
g:0
b:0
a:0
if color.hasOwnProperty("type")
type = color.type

0 comments on commit f797a36

Please sign in to comment.