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
Color
Class Color
Hierarchy
Color
RgbColor
HslColor
Implements
Interpolate
<
Color
>
HashCode
Equivalent
Debug
Index
Constructors
constructor
Properties
lightness
Brighter
Darker
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
Color
(
)
:
Color
Returns
Color
Properties
Readonly
Abstract
lightness
lightness
:
number
Static
Brighter
Brighter
:
number
Static
Darker
Darker
:
number
Methods
Abstract
alpha
alpha
(
)
:
number
alpha
(
a
:
number
)
:
Color
Returns
number
Parameters
a:
number
Returns
Color
Abstract
combine
combine
(
that
:
AnyColor
, scalar
?:
number
)
:
Color
Parameters
that:
AnyColor
Optional
scalar:
number
Returns
Color
contrast
contrast
(
k
?:
number
)
:
Color
Parameters
Optional
k:
number
Returns
Color
Abstract
darker
darker
(
k
?:
number
)
:
Color
Parameters
Optional
k:
number
Returns
Color
Abstract
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
Abstract
equals
equals
(
other
:
unknown
)
:
boolean
Parameters
other:
unknown
Returns
boolean
Abstract
equivalent
To
equivalent
To
(
that
:
unknown
, epsilon
?:
number
)
:
boolean
Parameters
that:
unknown
Optional
epsilon:
number
Returns
boolean
Abstract
hash
Code
hash
Code
(
)
:
number
Returns
number
Abstract
hsl
hsl
(
)
:
HslColor
Returns
HslColor
interpolate
To
interpolate
To
(
that
:
Color
)
:
Interpolator
<
Color
>
interpolate
To
(
that
:
unknown
)
:
null
|
Interpolator
<
Color
>
Parameters
that:
Color
Returns
Interpolator
<
Color
>
Parameters
that:
unknown
Returns
null
|
Interpolator
<
Color
>
Abstract
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
Abstract
lighter
lighter
(
k
?:
number
)
:
Color
Parameters
Optional
k:
number
Returns
Color
Abstract
plus
plus
(
that
:
AnyColor
)
:
Color
Parameters
that:
AnyColor
Returns
Color
Abstract
rgb
rgb
(
)
:
RgbColor
Returns
RgbColor
Abstract
times
times
(
scalar
:
number
)
:
Color
Parameters
scalar:
number
Returns
Color
Abstract
to
Hex
String
to
Hex
String
(
)
:
string
Returns
string
Abstract
to
String
to
String
(
)
:
string
Returns
string
Static
black
black
(
alpha
?:
number
)
:
Color
Parameters
Optional
alpha:
number
Returns
Color
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
:
AnyColor
)
:
Color
Parameters
value:
AnyColor
Returns
Color
Static
from
Init
from
Init
(
value
:
ColorInit
)
:
Color
Parameters
value:
ColorInit
Returns
Color
Static
from
Value
from
Value
(
value
:
Value
)
:
null
|
Color
Parameters
value:
Value
Returns
null
|
Color
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
AnyColor
Parameters
value:
unknown
Returns
value
is
AnyColor
Static
is
Init
is
Init
(
value
:
unknown
)
:
value
is
ColorInit
Parameters
value:
unknown
Returns
value
is
ColorInit
Static
parse
parse
(
string
:
string
)
:
Color
Parameters
string:
string
Returns
Color
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
(
)
:
Color
Returns
Color
Static
white
white
(
alpha
?:
number
)
:
Color
Parameters
Optional
alpha:
number
Returns
Color
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
Color
constructor
lightness
Brighter
Darker
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