parseHsla()

Type : public method

Support : 1.0

Return : Object

  • hsl, hsla Color문자열을 Object데이타로 반환.
    반환 되는 데이타 형태 Object {h: 360, s: 90, l: 10, a: 1 }

Methods

  • parseHsla( color ) : Objectver 1.0~

    • color : String
      hsl, hsla Color문자열, 예) "hsla(360, 90%, 10%, 0.5)"

Example

// {h: 360, s: 90, l: 10, a: 1 }
var objColor1 = $B.color.parseHsla( 'hsl(360, 90%, 10%)' ); 

// {h: 360, s: 90, l: 10, a: 0.5}
var objColor2 = $B.color.parseHsla( 'rgba(360, 90%, 10%, 0.5)' );