Crafty.assignColor()

Maps a wide vareity of color representations to a set of simple rgb(a) properties.

Crafty.assignColor(color[, assignee])
color

a string represenation of the color to assign, in any valid HTML format

assignee

an object to use instead of creating one from scratch

[Returns]

An object with _red, _green, and _blue properties assigned. Potentially with _strength representing the alpha channel. If the assignee parameter is passed, that object will be assigned those values and returned.