@univerjscoreclassesHlscolor

@univerjs/core v0.5.0-beta.1Docs


Class: HLSColor

Constructors

new HLSColor()

new HLSColor(rgbColor): HLSColor

Parameters

ParameterType
rgbColorRgbColor

Returns

HLSColor

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:159

Methods

asRgbColor()

asRgbColor(): RgbColor

Returns

RgbColor

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

ParameterType
t1number
t2number
t3number

Returns

number

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:253


setLightness()

setLightness(lightness): void

Parameters

ParameterType
lightnessnumber

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:277