Document Solutions Image Viewer
System
Light
Dark
Search…
Preparing search index...
Color
Interface Color
A utility class for working with colors.
interface
Color
{
R
:
number
;
G
:
number
;
B
:
number
;
A
:
number
;
HSL
:
HSLColor
;
customValue
?:
unknown
;
title
?:
string
;
lighten
(
percent
:
number
)
:
Color
;
darken
(
percent
:
number
)
:
Color
;
transparentize
(
percent
:
number
)
:
Color
;
get
rgb
()
:
string
;
get
rgba
()
:
string
;
get
hex
()
:
string
;
get
hex8
()
:
string
;
get
hslParts
()
:
string
;
get
hsl
()
:
string
;
get
hsla
()
:
string
;
}
Accessors
rgb
get
rgb
()
:
string
Returns
string
rgba
get
rgba
()
:
string
Returns
string
hex
get
hex
()
:
string
Returns
string
hex8
get
hex8
()
:
string
Returns
string
hsl
Parts
get
hslParts
()
:
string
Returns
string
hsl
get
hsl
()
:
string
Returns
string
hsla
get
hsla
()
:
string
Returns
string
Methods
lighten
lighten
(
percent
:
number
)
:
Color
Parameters
percent
:
number
Returns
Color
darken
darken
(
percent
:
number
)
:
Color
Parameters
percent
:
number
Returns
Color
transparentize
transparentize
(
percent
:
number
)
:
Color
Parameters
percent
:
number
Returns
Color
Properties
R
R
:
number
G
G
:
number
B
B
:
number
A
A
:
number
Alpha value in the range [0, 255]
HSL
HSL
:
HSLColor
Optional
custom
Value
customValue
?:
unknown
Optional
title
title
?:
string
Accessors
rgb
rgba
hex
hex8
hsl
Parts
hsl
hsla
Methods
lighten
darken
transparentize
Properties
R
G
B
A
HSL
custom
Value
title
Document Solutions Image Viewer - v9.1.3
Loading...
A utility class for working with colors.