Created
August 14, 2018 23:16
-
-
Save alexko30/08d3c7e8a94fe62ccde2c4699669c48d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initialize(startValue, destValue) { | |
return { | |
data: { | |
format: (startValue.indexOf('rgba') >= 0 && 'rgba') | |
|| (startValue.indexOf('rgb') >= 0 && 'rgb') | |
|| (startValue.indexOf('#') >= 0 && 'hex') | |
|| Color(startValue).model | |
}, | |
startValue: Color(startValue).rgb(), | |
destValue: Color(destValue).rgb() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment