Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/color
RgbColor
Class RgbColor
Hierarchy
Color
RgbColor
Implements
HashCode
Debug
Index
Constructors
constructor
Properties
a
b
g
r
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
Rgb
Color
(
r
:
number
, g
:
number
, b
:
number
, a
?:
number
)
:
RgbColor
Parameters
r:
number
g:
number
b:
number
Default value
a:
number
= 1
Returns
RgbColor
Properties
a
a
:
number
b
b
:
number
g
g
:
number
r
r
:
number
Methods
alpha
alpha
(
)
:
number
alpha
(
a
:
number
)
:
RgbColor
Returns
number
Parameters
a:
number
Returns
RgbColor
brighter
brighter
(
k
?:
undefined
|
number
)
:
RgbColor
Parameters
Optional
k:
undefined
|
number
Returns
RgbColor
contrast
contrast
(
k
?:
undefined
|
number
)
:
Color
Parameters
Optional
k:
undefined
|
number
Returns
Color
darker
darker
(
k
?:
undefined
|
number
)
:
RgbColor
Parameters
Optional
k:
undefined
|
number
Returns
RgbColor
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
(
)
:
RgbColor
Returns
RgbColor
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
)
:
RgbColor
|
undefined
Parameters
value:
Value
Returns
RgbColor
|
undefined
Static
hsl
hsl
(
value
:
AnyColor
)
:
HslColor
Parameters
value:
AnyColor
Returns
HslColor
Static
parse
parse
(
str
:
string
)
:
RgbColor
Parameters
str:
string
Returns
RgbColor
Static
rgb
rgb
(
value
:
AnyColor
)
:
RgbColor
Parameters
value:
AnyColor
Returns
RgbColor
Static
transparent
transparent
(
alpha
?:
number
)
:
RgbColor
Parameters
Default value
alpha:
number
= 0
Returns
RgbColor
Static
white
white
(
)
:
RgbColor
Returns
RgbColor
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
Rgb
Color
constructor
a
b
g
r
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
Init
Rgb
Color
Init
Any
Color
Any
Hsl
Color
Any
Rgb
Color
Color
Init