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