https://www.w3.org/wiki/CSS/Properties/color/keywords"/> toHex | ixBand.js

toHex()

Type : public method

Support : 0.6

Return : String

Methods

  • toHex( color ) : Stringver 0.6~

    • color : String
      Color문자열 ("hex", "rgb", "rgba", "keyword", "hsl", "hsla")

Example

var bgColor = $B( '#box' ).css( 'background-color' );
var color = $B.color.toHex( bgColor ); //#FFFFFF