-
- 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
multiMix()
Type : public method
Support : 0.6
Return : String
- 여러가지 색상을 정비율로 혼합하여 해당 구간의 색상을 반환.
- 16진수 or 10진수 Color문자열 반환.
https://www.w3.org/wiki/CSS/Properties/color/keywords 에 정의된 모든 color keyword 지원
Methods
-
multiMix( colors, progress, type ) : Stringver 0.6~
-
colors : Array색상배열
-
progress : Number색상들의 혼합 비율, 0~1
-
type : String반환 받을 Color Type, "hex", "rgb", "rgba", "hsl", "hsla" (기본값 "hex")
(~IE8 에서는 rgba를 지원하지 않기때문에 rgb로 반환된다.)
-
Example
//#65ff00
var mixColor1 = $B.color.multiMix( ['#ff22ff', '#00ff00', '#ffff00'], 0.7 );
//rgb(101, 153, 101)
var mixColor2 = $B.color.multiMix( ['#ff22ff', '#00ff00', 'rgb(255, 0, 255)'], 0.7, 'rgb' );
//rgba(255, 153, 101, 0.7)
var colors = ['#ff22ff', 'rgba(255, 255, 0, 0.5)', 'rgb(255, 0, 255)'];
var mixColor3 = $B.color.multiMix( colors, 0.7, 'rgba' );