Class THREE.Color
Defined in: Color.js.
Constructor Attributes | Constructor Name and Description |
---|---|
THREE.Color(hex)
|
Method Attributes | Method Name and Description |
---|---|
clone()
|
|
copy(color)
|
|
copyGammaToLinear(color)
|
|
copyLinearToGamma(color)
|
|
getHex()
|
|
getHSV(hsv)
|
|
lerpSelf(color, alpha)
|
|
setContextStyle(style)
|
|
setHex(hex)
|
|
setHSV(h, s, v)
|
|
setRGB(r, g, b)
|
Method Detail
clone()
convertGammaToLinear()
convertLinearToGamma()
copy(color)
- Parameters:
- color
copyGammaToLinear(color)
- Parameters:
- color
copyLinearToGamma(color)
- Parameters:
- color
getContextStyle()
getHex()
getHexString()
getHSV(hsv)
- Parameters:
- hsv
lerpSelf(color, alpha)
- Parameters:
- color
- alpha
setContextStyle(style)
- Parameters:
- style
setHex(hex)
- Parameters:
- hex
setHSV(h, s, v)
- Parameters:
- h
- s
- v
setRGB(r, g, b)
- Parameters:
- r
- g
- b