@simversus/yjvis • Docs
@simversus/yjvis / Color
Class: Color
Constructors
new Color()
new Color(
cr
,colorSpace
):Color
Parameters
• cr: ColorRepresentation
= ...
• colorSpace: ColorSpace
= ColorManagement.workingColorSpace
Returns
Defined in
math/Color.ts:171
Properties
b
b:
number
=1
Defined in
math/Color.ts:163
g
g:
number
=1
Defined in
math/Color.ts:162
r
r:
number
=1
Defined in
math/Color.ts:161
Accessors
elements
get
elements():Number3
Returns
Number3
Defined in
math/Color.ts:167
Methods
[iterator]()
[iterator]():
Generator
<number
,void
,unknown
>
Returns
Generator
<number
, void
, unknown
>
Defined in
math/Color.ts:245
applyMatrix3()
applyMatrix3(
m
):Color
Parameters
• m: Mat3
Returns
Defined in
math/Color.ts:240
convertLinearToSRGB()
convertLinearToSRGB(
color
):Color
Parameters
• color: Color
= ...
Returns
Defined in
math/Color.ts:233
convertSRGBToLinear()
convertSRGBToLinear(
color
):Color
Parameters
• color: Color
= ...
Returns
Defined in
math/Color.ts:226
copy()
copy(
color
):void
Parameters
• color: Color
Returns
void
Defined in
math/Color.ts:220
set()
set(
cr
):Color
Parameters
• cr: ColorRepresentation
Returns
Defined in
math/Color.ts:176
setHex()
setHex(
hex
):Color
Parameters
• hex: number
Returns
Defined in
math/Color.ts:195
setRGB()
setRGB(
r
,g
,b
):Color
Parameters
• r: number
• g: number
• b: number
Returns
Defined in
math/Color.ts:187
setStyle()
setStyle(
style
):Color
Parameters
• style: string
Returns
Defined in
math/Color.ts:204