Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/color
HslColor
Class HslColor
Hierarchy
Color
HslColor
Implements
HashCode
Debug
Index
Constructors
constructor
Properties
a
h
l
s
Methods
alpha
brighter
contrast
darker
debug
equals
hash
Code
hsl
is
Defined
lightness
rgb
to
Hex
String
to
String
black
form
from
Any
from
Name
from
Value
hsl
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
Default value
a:
number
= 1
Returns
HslColor
Properties
a
a
:
number
h
h
:
number
l
l
:
number
s
s
:
number
Methods
alpha
alpha
(
)
:
number
alpha
(
a
:
number
)
:
HslColor
Returns
number
Parameters
a:
number
Returns
HslColor
brighter
brighter
(
k
?:
undefined
|
number
)
:
HslColor
Parameters
Optional
k:
undefined
|
number
Returns
HslColor
contrast
contrast
(
k
?:
undefined
|
number
)
:
Color
Parameters
Optional
k:
undefined
|
number
Returns
Color
darker
darker
(
k
?:
undefined
|
number
)
:
HslColor
Parameters
Optional
k:
undefined
|
number
Returns
HslColor
debug
debug
(
output
:
Output
)
:
void
Parameters
output:
Output
Returns
void
equals
equals
(
other
:
unknown
)
:
boolean
Parameters
other:
unknown
Returns
boolean
hash
Code
hash
Code
(
)
:
number
Returns
number
hsl
hsl
(
)
:
HslColor
Returns
HslColor
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
lightness
lightness
(
)
:
number
Returns
number
rgb
rgb
(
)
:
RgbColor
Returns
RgbColor
to
Hex
String
to
Hex
String
(
)
:
string
Returns
string
to
String
to
String
(
)
:
string
Returns
string
Static
black
black
(
)
:
HslColor
Returns
HslColor
Static
form
form
(
unit
?:
AnyColor
)
:
Form
<
Color
,
AnyColor
>
Parameters
Optional
unit:
AnyColor
Returns
Form
<
Color
,
AnyColor
>
Static
from
Any
from
Any
(
value
:
AnyColor
)
:
Color
Parameters
value:
AnyColor
Returns
Color
Static
from
Name
from
Name
(
name
:
string
)
:
Color
|
undefined
Parameters
name:
string
Returns
Color
|
undefined
Static
from
Value
from
Value
(
value
:
Value
)
:
HslColor
|
undefined
Parameters
value:
Value
Returns
HslColor
|
undefined
Static
hsl
hsl
(
value
:
AnyColor
)
:
HslColor
Parameters
value:
AnyColor
Returns
HslColor
Static
parse
parse
(
str
:
string
)
:
HslColor
Parameters
str:
string
Returns
HslColor
Static
rgb
rgb
(
value
:
AnyColor
)
:
RgbColor
Parameters
value:
AnyColor
Returns
RgbColor
Static
transparent
transparent
(
alpha
?:
number
)
:
HslColor
Parameters
Default value
alpha:
number
= 0
Returns
HslColor
Static
white
white
(
)
:
HslColor
Returns
HslColor
Globals
@swim/core
@swim/mesh
@swim/ui
@swim/angle
@swim/animate
@swim/color
@swim/constraint
@swim/dom
@swim/font
@swim/gesture
@swim/interpolate
@swim/length
@swim/render
@swim/scale
@swim/shape
@swim/style
@swim/transform
@swim/transition
@swim/typeset
@swim/view
@swim/ux
@swim/web
Color
Hsl
Color
constructor
a
h
l
s
alpha
brighter
contrast
darker
debug
equals
hash
Code
hsl
is
Defined
lightness
rgb
to
Hex
String
to
String
black
form
from
Any
from
Name
from
Value
hsl
parse
rgb
transparent
white
Rgb
Color
Hsl
Color
Init
Rgb
Color
Init
Any
Color
Any
Hsl
Color
Any
Rgb
Color
Color
Init