math docs
Preparing search index...
color
color
setFromColorInput
Function setFromColorInput
setFromColorInput
(
out
:
color
.
Color
,
input
:
color
.
ColorInput
)
:
color
.
Color
Parse any supported color input and write the result into
out
. Returns
out
.
Supported inputs:
CSS hex strings: '#f00', '#ff0000'
CSS rgb(): 'rgb(255, 0, 0)', 'rgb(100%, 0%, 0%)'
CSS hsl(): 'hsl(0, 100%, 50%)'
0xRRGGBB integers: 0xff0000 (sRGB gamma)
Named CSS colors: 'red', 'lime', 'deepskyblue', ...
[r, g, b] array: treated as already-linear [0, 1]
Parameters
out
:
color
.
Color
input
:
color
.
ColorInput
Returns
color
.
Color
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
math docs
Loading...
Parse any supported color input and write the result into
out. Returnsout.Supported inputs: