-
- ANDROID
- ANDROID_TABLET
- CHROME
- CHROME_VERSION
- DOC_MODE
- DOC_MODE_IE10_LT
- DOC_MODE_IE11_LT
- DOC_MODE_IE12_LT
- DOC_MODE_IE8_LT
- DOC_MODE_IE9_LT
- EDGE
- FIREFOX
- IE10_LT
- IE11_LT
- IE7_LT
- IE8_LT
- IE9_LT
- IE_COMPATIBLE
- IE_VERSION
- IPAD
- IPHONE
- LINUX
- MAC
- MOBILE
- MOBILE_IOS
- MOZILLA
- MSIE
- OPERA
- OPERA_MINI
- OS_VERSION
- SAFARI
- SAMSUNG
- SAMSUNG_VERSION
- SMART_PHONE
- TABLET
- TOUCH_DEVICE
- VERSION
- WEBKIT
- WEBKIT_VERSION
- WINDOWS
- WINDOWS_PHONE
- WINDOWS_TABLET
-
- addChild
- addClass
- addEvent
- attr
- children
- clone
- closest
- contentHeight
- contentWidth
- css
- each
- element
- hasClass
- hasEvent
- height
- html
- innerHeight
- innerWidth
- insertSWF
- match
- next
- outerHeight
- outerWidth
- parent
- prev
- prop
- rect
- remove
- removeAllEvent
- removeAttr
- removeChild
- removeClass
- removeEvent
- removeProp
- replaceWith
- scrollLeft
- scrollTop
- selector
- selectorAll
- text
- transition
- trigger
- width
toHsl()
Type : public method
Support : 1.0
Return : String | Object
- Color문자열을 HSL문자열 이나 Object데이타로 반환.
- 반환 되는 데이타 형태 "hsla(255, 20%, 80%)" or Object {h: 255, s: 20, l: 80}
https://www.w3.org/wiki/CSS/Properties/color/keywords
Methods
-
toHsl( color, parse ) : StringObjectver 1.0~
-
color : StringColor문자열 ("hex", "rgb", "rgba", "keyword", "hsl", "hsla")
-
parse : Boolean반환값을 Object{h, s, l}로 받을것인지 설정, (기본값 false)
-
Example
//Return Type : String
var strColor = $B.color.toHsla( '#FFFFFF' ); //hsl(0, 0%, 100%)
//Return Type : Object
var objColor = $B.color.toHsla( '#FFFFFF', true ); //{ h: 0, s: 0%, l: 100% }