@univerjscoreclassesHlscolor

@univerjs/core v0.5.4


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

ParameterType
rgbColorRgbColor

Returns

HLSColor

Methods

asRgbColor()

asRgbColor(): RgbColor

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:205

Returns

RgbColor


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

ParameterType
t1number
t2number
t3number

Returns

number


setLightness()

setLightness(lightness): void

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

Parameters

ParameterType
lightnessnumber

Returns

void