Search
Preparing search index...
The search index is not available
SavageDOM
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Color
Class Color
Hierarchy
Color
Implements
Attribute
<
Color
>
Index
Constructors
constructor
Properties
_data
interpolation
Factory
DEFAULT_
INTERPOLATION
Methods
asHSL
asRGB
get
interpolator
parse
set
to
String
Constructors
constructor
new
Color
(
c
:
string
|
ColorSpaceObject
, interpolationFactory
?:
ColorGammaInterpolationFactory
)
:
Color
Parameters
c:
string
|
ColorSpaceObject
Default value
interpolationFactory:
ColorGammaInterpolationFactory
= Color.DEFAULT_INTERPOLATION
Returns
Color
Properties
Private
_data
_data
:
ColorSpaceObject
interpolation
Factory
interpolation
Factory
:
ColorGammaInterpolationFactory
Static
DEFAULT_
INTERPOLATION
DEFAULT_
INTERPOLATION
:
ColorGammaInterpolationFactory
= interpolateRgb
Methods
asHSL
asHSL
(
)
:
HSLColor
Returns
HSLColor
asRGB
asRGB
(
)
:
RGBColor
Returns
RGBColor
get
get
(
element
:
SVGElement
, attr
:
string
)
:
Color
Parameters
element:
SVGElement
attr:
string
Returns
Color
interpolator
interpolator
(
from
:
Color
)
:
function
Parameters
from:
Color
Returns
function
(
t
:
number
)
:
Color
Parameters
t:
number
Returns
Color
parse
parse
(
css
:
string
|
null
)
:
Color
Parameters
css:
string
|
null
Returns
Color
set
set
(
element
:
SVGElement
, attr
:
string
, override
?:
Color
)
:
void
Parameters
element:
SVGElement
attr:
string
Optional
override:
Color
Returns
void
to
String
to
String
(
)
:
string
Returns
string
Globals
Color
constructor
_data
interpolation
Factory
DEFAULT_
INTERPOLATION
asHSL
asRGB
get
interpolator
parse
set
to
String
Generated using
TypeDoc