Search
Preparing search index...
The search index is not available
OpenCascade.js - v2.0.0-beta.533428a
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
OpenCascade.js - v2.0.0-beta.533428a
Quantity_ColorRGBA_2
Class Quantity_ColorRGBA_2
Hierarchy
Quantity_ColorRGBA
Quantity_ColorRGBA_2
Index
Constructors
constructor
Methods
Alpha
ChangeRGB
Dump
Json
GetRGB
Init
From
Json
Is
Different
Is
Equal
Set
Alpha
SetRGB
Set
Values
delete
Color
From
Hex
Color
From
Name
Color
To
Hex
Convert_
LinearRGB_
To_
sRGB
Convert_
sRGB_
To_
LinearRGB
Constructors
constructor
new
Quantity_
ColorRGBA_
2
(
theRgb
:
Quantity_Color
)
:
Quantity_ColorRGBA_2
Parameters
theRgb:
Quantity_Color
Returns
Quantity_ColorRGBA_2
Methods
Alpha
Alpha
(
)
:
number
Returns
number
ChangeRGB
ChangeRGB
(
)
:
Quantity_Color
Returns
Quantity_Color
Dump
Json
Dump
Json
(
theOStream
:
Standard_OStream
, theDepth
:
Graphic3d_ZLayerId
)
:
void
Parameters
theOStream:
Standard_OStream
theDepth:
Graphic3d_ZLayerId
Returns
void
GetRGB
GetRGB
(
)
:
Quantity_Color
Returns
Quantity_Color
Init
From
Json
Init
From
Json
(
theSStream
:
Standard_SStream
, theStreamPos
:
Graphic3d_ZLayerId
)
:
boolean
Parameters
theSStream:
Standard_SStream
theStreamPos:
Graphic3d_ZLayerId
Returns
boolean
Is
Different
Is
Different
(
theOther
:
Quantity_ColorRGBA
)
:
boolean
Parameters
theOther:
Quantity_ColorRGBA
Returns
boolean
Is
Equal
Is
Equal
(
theOther
:
Quantity_ColorRGBA
)
:
boolean
Parameters
theOther:
Quantity_ColorRGBA
Returns
boolean
Set
Alpha
Set
Alpha
(
theAlpha
:
number
)
:
void
Parameters
theAlpha:
number
Returns
void
SetRGB
SetRGB
(
theRgb
:
Quantity_Color
)
:
void
Parameters
theRgb:
Quantity_Color
Returns
void
Set
Values
Set
Values
(
theRed
:
number
, theGreen
:
number
, theBlue
:
number
, theAlpha
:
number
)
:
void
Parameters
theRed:
number
theGreen:
number
theBlue:
number
theAlpha:
number
Returns
void
delete
delete
(
)
:
void
Returns
void
Static
Color
From
Hex
Color
From
Hex
(
theHexColorString
:
number
, theColor
:
Quantity_ColorRGBA
, theAlphaComponentIsOff
:
boolean
)
:
boolean
Parameters
theHexColorString:
number
theColor:
Quantity_ColorRGBA
theAlphaComponentIsOff:
boolean
Returns
boolean
Static
Color
From
Name
Color
From
Name
(
theColorNameString
:
string
, theColor
:
Quantity_ColorRGBA
)
:
boolean
Parameters
theColorNameString:
string
theColor:
Quantity_ColorRGBA
Returns
boolean
Static
Color
To
Hex
Color
To
Hex
(
theColor
:
Quantity_ColorRGBA
, theToPrefixHash
:
boolean
)
:
XCAFDoc_PartId
Parameters
theColor:
Quantity_ColorRGBA
theToPrefixHash:
boolean
Returns
XCAFDoc_PartId
Static
Convert_
LinearRGB_
To_
sRGB
Convert_
LinearRGB_
To_
sRGB
(
theRGB
:
NCollection_Vec4
<
float
>
)
:
any
Parameters
theRGB:
NCollection_Vec4
<
float
>
Returns
any
Static
Convert_
sRGB_
To_
LinearRGB
Convert_
sRGB_
To_
LinearRGB
(
theRGB
:
NCollection_Vec4
<
float
>
)
:
any
Parameters
theRGB:
NCollection_Vec4
<
float
>
Returns
any
Exports
Quantity_
ColorRGBA_
2
constructor
Alpha
ChangeRGB
Dump
Json
GetRGB
Init
From
Json
Is
Different
Is
Equal
Set
Alpha
SetRGB
Set
Values
delete
Color
From
Hex
Color
From
Name
Color
To
Hex
Convert_
LinearRGB_
To_
sRGB
Convert_
sRGB_
To_
LinearRGB
Generated using
TypeDoc