Back to Website
Show / Hide Table of Contents

Class HsbColor

Package: @aurigma/design-atoms-model

Constructors

(constructor)(h, s, b, alpha)

Constructs a new instance of the HsbColor class

Declaration
constructor(h: number, s: number, b: number, alpha: number);
Parameters
Type Name Description
number h
number s
number b
number alpha

Properties

alpha

Alpha in range [0, 255]

Declaration
get alpha(): number;
Property Value
Type Description
number

Alpha in range [0, 255]

b

Brightness in range [0, 1]

Declaration
get b(): number;
Property Value
Type Description
number

Brightness in range [0, 1]

h

Hue in range [0, 1]

Declaration
get h(): number;
Property Value
Type Description
number

Hue in range [0, 1]

s

Saturation in range [0, 1]

Declaration
get s(): number;
Property Value
Type Description
number

Saturation in range [0, 1]

Methods

clone()

Declaration
clone(): HsbColor;
Returns
Type Description
HsbColor

darken(value)

Declaration
darken(value: number): HsbColor;
Parameters
Type Name Description
number value
Returns
Type Description
HsbColor

decreaseAlpha(value)

Declaration
decreaseAlpha(value: number): HsbColor;
Parameters
Type Name Description
number value
Returns
Type Description
HsbColor

decreaseHue(value)

Declaration
decreaseHue(value: number): HsbColor;
Parameters
Type Name Description
number value
Returns
Type Description
HsbColor

desaturate(value)

Declaration
desaturate(value: number): HsbColor;
Parameters
Type Name Description
number value
Returns
Type Description
HsbColor

fromRgb(rgbColor)

Declaration
static fromRgb(rgbColor: RgbColor): HsbColor;
Parameters
Type Name Description
RgbColor rgbColor
Returns
Type Description
HsbColor

increaseAlpha(value)

Declaration
increaseAlpha(value: number): HsbColor;
Parameters
Type Name Description
number value
Returns
Type Description
HsbColor

increaseHue(value)

Declaration
increaseHue(value: number): HsbColor;
Parameters
Type Name Description
number value
Returns
Type Description
HsbColor

lighten(value)

Declaration
lighten(value: number): HsbColor;
Parameters
Type Name Description
number value
Returns
Type Description
HsbColor

saturate(value)

Declaration
saturate(value: number): HsbColor;
Parameters
Type Name Description
number value
Returns
Type Description
HsbColor

toRgb()

Declaration
toRgb(): RgbColor;
Returns
Type Description
RgbColor
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback