• <option id="kikm0"><source id="kikm0"></source></option>
  • 金沙娱东城官网

    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.

    金沙娱东城官网