@univerjs/core v0.5.0-beta.1 • Docs
Class: HLSColor
Constructors
new HLSColor()
new HLSColor(rgbColor): HLSColor
Parameters
Parameter | Type |
---|---|
rgbColor | RgbColor |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:159
Methods
asRgbColor()
asRgbColor(): RgbColor
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:205
getAlpha()
getAlpha(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:249
getHue()
getHue(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:241
getLightness()
getLightness(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:237
getSaturation()
getSaturation(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:245
setColor()
setColor(
t1,
t2,
t3): number
Parameters
Parameter | Type |
---|---|
t1 | number |
t2 | number |
t3 | number |
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:253
setLightness()
setLightness(lightness): void
Parameters
Parameter | Type |
---|---|
lightness | number |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:277