Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/color
Color
Class Color
Hierarchy
Color
HslColor
RgbColor
Implements
HashCode
Debug
Index
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
Methods
Abstract
alpha
alpha
(
)
:
number
alpha
(
a
:
number
)
:
Color
Returns
number
Parameters
a:
number
Returns
Color
Abstract
brighter
brighter
(
k
?:
undefined
|
number
)
:
Color
Parameters
Optional
k:
undefined
|
number
Returns
Color
contrast
contrast
(
k
?:
undefined
|
number
)
:
Color
Parameters
Optional
k:
undefined
|
number
Returns
Color
Abstract
darker
darker
(
k
?:
undefined
|
number
)
:
Color
Parameters
Optional
k:
undefined
|
number
Returns
Color
Abstract
debug
debug
(
output
:
Output
)
:
void
Parameters
output:
Output
Returns
void
Abstract
equals
equals
(
other
:
unknown
)
:
boolean
Parameters
other:
unknown
Returns
boolean
Abstract
hash
Code
hash
Code
(
)
:
number
Returns
number
Abstract
hsl
hsl
(
)
:
HslColor
Returns
HslColor
Abstract
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
Abstract
lightness
lightness
(
)
:
number
Returns
number
Abstract
rgb
rgb
(
)
:
RgbColor
Returns
RgbColor
Abstract
to
Hex
String
to
Hex
String
(
)
:
string
Returns
string
Abstract
to
String
to
String
(
)
:
string
Returns
string
Static
black
black
(
)
:
Color
Returns
Color
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
)
:
Color
|
undefined
Parameters
value:
Value
Returns
Color
|
undefined
Static
hsl
hsl
(
value
:
AnyColor
)
:
HslColor
hsl
(
h
:
AnyAngle
, s
:
number
, l
:
number
, a
?:
undefined
|
number
)
:
HslColor
Parameters
value:
AnyColor
Returns
HslColor
Parameters
h:
AnyAngle
s:
number
l:
number
Optional
a:
undefined
|
number
Returns
HslColor
Static
parse
parse
(
string
:
string
)
:
Color
Parameters
string:
string
Returns
Color
Static
rgb
rgb
(
value
:
AnyColor
)
:
RgbColor
rgb
(
r
:
number
, g
:
number
, b
:
number
, a
?:
undefined
|
number
)
:
RgbColor
Parameters
value:
AnyColor
Returns
RgbColor
Parameters
r:
number
g:
number
b:
number
Optional
a:
undefined
|
number
Returns
RgbColor
Static
transparent
transparent
(
alpha
?:
undefined
|
number
)
:
Color
Parameters
Optional
alpha:
undefined
|
number
Returns
Color
Static
white
white
(
)
:
Color
Returns
Color
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
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
Hsl
Color
Rgb
Color
Hsl
Color
Init
Rgb
Color
Init
Any
Color
Any
Hsl
Color
Any
Rgb
Color
Color
Init