Documentation
Preparing search index...
core/src
darkenColor
Function darkenColor
darkenColor
(
color
:
string
,
alpha
:
number
)
:
string
|
null
Returns the given hex or RGB color darkened by the given alpha.
Parameters
color
:
string
alpha
:
number
Returns
string
|
null
null
if invalid color.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...
Returns the given hex or RGB color darkened by the given alpha.