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

Crafty.assignColor(color[, assignee])

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


an object to use instead of creating one from scratch


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.