Skip to content

Instantly share code, notes, and snippets.

@simonrenoult
Created December 20, 2013 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonrenoult/8055489 to your computer and use it in GitHub Desktop.
Save simonrenoult/8055489 to your computer and use it in GitHub Desktop.
Hexadecimal color to RGBA.
color = '#' + ( @model.get 'stroke_color' )
.map ( color ) ->
xColor = color.toString 16
if xColor.length is 1 then "0" + xColor else xColor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment