rgbToHex()

Type : public method

Support : 0.6

Return : String

  • RGB문자열을 Hex문자열로 반환.

Methods

  • rgbToHex( color ) : Stringver 0.6~

    • color : String
      RGB Color문자열, 예)"rgb(255, 255, 255)"

Example

var color = $B.color.rgbToHex( 'rgb(255, 255, 255)' ); //#FFFFFF