Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/style
HslColor
Class HslColor
Hierarchy
Color
HslColor
Index
Constructors
constructor
Properties
a
h
l
s
string
Value
Brighter
Darker
Accessors
lightness
Methods
alpha
combine
contrast
darker
debug
equals
equivalent
To
hash
Code
hsl
interpolate
To
is
Defined
lighter
plus
rgb
times
to
Hex
String
to
String
black
for
Name
form
from
Any
from
Init
from
Value
hsl
is
Any
is
Init
parse
rgb
transparent
white
Constructors
constructor
new
Hsl
Color
(
h
:
number
, s
:
number
, l
:
number
, a
?:
number
)
:
HslColor
Parameters
h:
number
s:
number
l:
number
Optional
a:
number
Returns
HslColor
Properties
Readonly
a
a
:
number
Readonly
h
h
:
number
Readonly
l
l
:
number
Readonly
s
s
:
number
Readonly
string
Value
string
Value
:
undefined
|
string
Static
Brighter
Brighter
:
number
Static
Darker
Darker
:
number
Accessors
lightness
get
lightness
(
)
:
number
Returns
number
Methods
alpha
alpha
(
)
:
number
alpha
(
a
:
number
)
:
HslColor
Returns
number
Parameters
a:
number
Returns
HslColor
combine
combine
(
that
:
AnyColor
, scalar
?:
number
)
:
HslColor
Parameters
that:
AnyColor
Optional
scalar:
number
Returns
HslColor
contrast
contrast
(
k
?:
number
)
:
Color
Parameters
Optional
k:
number
Returns
Color
darker
darker
(
k
?:
number
)
:
HslColor
Parameters
Optional
k:
number
Returns
HslColor
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
equivalent
To
equivalent
To
(
that
:
unknown
, epsilon
?:
number
)
:
boolean
Parameters
that:
unknown
Optional
epsilon:
number
Returns
boolean
hash
Code
hash
Code
(
)
:
number
Returns
number
hsl
hsl
(
)
:
HslColor
Returns
HslColor
interpolate
To
interpolate
To
(
that
:
HslColor
)
:
Interpolator
<
HslColor
>
interpolate
To
(
that
:
Color
)
:
Interpolator
<
Color
>
interpolate
To
(
that
:
unknown
)
:
null
|
Interpolator
<
Color
>
Parameters
that:
HslColor
Returns
Interpolator
<
HslColor
>
Parameters
that:
Color
Returns
Interpolator
<
Color
>
Parameters
that:
unknown
Returns
null
|
Interpolator
<
Color
>
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
lighter
lighter
(
k
?:
number
)
:
HslColor
Parameters
Optional
k:
number
Returns
HslColor
plus
plus
(
that
:
AnyColor
)
:
HslColor
Parameters
that:
AnyColor
Returns
HslColor
rgb
rgb
(
)
:
RgbColor
Returns
RgbColor
times
times
(
scalar
:
number
)
:
HslColor
Parameters
scalar:
number
Returns
HslColor
to
Hex
String
to
Hex
String
(
)
:
string
Returns
string
to
String
to
String
(
)
:
string
Returns
string
Static
black
black
(
alpha
?:
number
)
:
HslColor
Parameters
Optional
alpha:
number
Returns
HslColor
Static
for
Name
for
Name
(
name
:
string
)
:
null
|
Color
Parameters
name:
string
Returns
null
|
Color
Static
form
form
(
)
:
Form
<
Color
,
AnyColor
>
Returns
Form
<
Color
,
AnyColor
>
Static
from
Any
from
Any
(
value
:
AnyHslColor
)
:
HslColor
Parameters
value:
AnyHslColor
Returns
HslColor
Static
from
Init
from
Init
(
value
:
HslColorInit
)
:
HslColor
Parameters
value:
HslColorInit
Returns
HslColor
Static
from
Value
from
Value
(
value
:
Value
)
:
null
|
HslColor
Parameters
value:
Value
Returns
null
|
HslColor
Static
hsl
hsl
(
h
:
AnyAngle
, s
:
number
, l
:
number
, a
?:
number
)
:
HslColor
Parameters
h:
AnyAngle
s:
number
l:
number
Optional
a:
number
Returns
HslColor
Static
is
Any
is
Any
(
value
:
unknown
)
:
value
is
AnyHslColor
Parameters
value:
unknown
Returns
value
is
AnyHslColor
Static
is
Init
is
Init
(
value
:
unknown
)
:
value
is
HslColorInit
Parameters
value:
unknown
Returns
value
is
HslColorInit
Static
parse
parse
(
str
:
string
)
:
HslColor
Parameters
str:
string
Returns
HslColor
Static
rgb
rgb
(
r
:
number
, g
:
number
, b
:
number
, a
?:
number
)
:
RgbColor
Parameters
r:
number
g:
number
b:
number
Optional
a:
number
Returns
RgbColor
Static
transparent
transparent
(
)
:
HslColor
Returns
HslColor
Static
white
white
(
alpha
?:
number
)
:
HslColor
Parameters
Optional
alpha:
number
Returns
HslColor
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Hsl
Color
constructor
a
h
l
s
string
Value
Brighter
Darker
lightness
alpha
combine
contrast
darker
debug
equals
equivalent
To
hash
Code
hsl
interpolate
To
is
Defined
lighter
plus
rgb
times
to
Hex
String
to
String
black
for
Name
form
from
Any
from
Init
from
Value
hsl
is
Any
is
Init
parse
rgb
transparent
white
Generated using
TypeDoc