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_Color_1
Class Quantity_Color_1
Hierarchy
Quantity_Color
Quantity_Color_1
Index
Constructors
constructor
Methods
Blue
Change
Contrast
Change
Intensity
Delta
Delta
E2000
Distance
Dump
Json
Green
Hue
Init
From
Json
Is
Different
Is
Equal
Light
Name_
1
Red
Rgb
Saturation
Set
Values_
1
Set
Values_
2
Square
Distance
Values
delete
Argb2color
Color2argb
Color
From
Hex
Color
From
Name_
1
Color
From
Name_
2
Color
To
Hex
Convert_
HLS_
To_
LinearRGB
Convert_
HLS_
To_
sRGB
Convert_
Lab_
To_
Lch
Convert_
Lab_
To_
LinearRGB
Convert_
Lch_
To_
Lab
Convert_
LinearRGB_
To_
HLS
Convert_
LinearRGB_
To_
Lab
Convert_
LinearRGB_
To_
sRGB_
1
Convert_
LinearRGB_
To_
sRGB_
2
Convert_
LinearRGB_
To_
sRGB_
approx22_
1
Convert_
LinearRGB_
To_
sRGB_
approx22_
2
Convert_
sRGB_
To_
HLS
Convert_
sRGB_
To_
LinearRGB_
1
Convert_
sRGB_
To_
LinearRGB_
2
Convert_
sRGB_
To_
LinearRGB_
approx22_
1
Convert_
sRGB_
To_
LinearRGB_
approx22_
2
Epsilon
Hls
Rgb
Name_
2
Rgb
Hls
Set
Epsilon
String
Name
Constructors
constructor
new
Quantity_
Color_
1
(
)
:
Quantity_Color_1
Returns
Quantity_Color_1
Methods
Blue
Blue
(
)
:
number
Returns
number
Change
Contrast
Change
Contrast
(
theDelta
:
number
)
:
void
Parameters
theDelta:
number
Returns
void
Change
Intensity
Change
Intensity
(
theDelta
:
number
)
:
void
Parameters
theDelta:
number
Returns
void
Delta
Delta
(
theColor
:
Quantity_Color
, DC
:
number
, DI
:
number
)
:
void
Parameters
theColor:
Quantity_Color
DC:
number
DI:
number
Returns
void
Delta
E2000
Delta
E2000
(
theOther
:
Quantity_Color
)
:
number
Parameters
theOther:
Quantity_Color
Returns
number
Distance
Distance
(
theColor
:
Quantity_Color
)
:
number
Parameters
theColor:
Quantity_Color
Returns
number
Dump
Json
Dump
Json
(
theOStream
:
Standard_OStream
, theDepth
:
Graphic3d_ZLayerId
)
:
void
Parameters
theOStream:
Standard_OStream
theDepth:
Graphic3d_ZLayerId
Returns
void
Green
Green
(
)
:
number
Returns
number
Hue
Hue
(
)
:
number
Returns
number
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_Color
)
:
boolean
Parameters
theOther:
Quantity_Color
Returns
boolean
Is
Equal
Is
Equal
(
theOther
:
Quantity_Color
)
:
boolean
Parameters
theOther:
Quantity_Color
Returns
boolean
Light
Light
(
)
:
number
Returns
number
Name_
1
Name_
1
(
)
:
Quantity_NameOfColor
Returns
Quantity_NameOfColor
Red
Red
(
)
:
number
Returns
number
Rgb
Rgb
(
)
:
any
Returns
any
Saturation
Saturation
(
)
:
number
Returns
number
Set
Values_
1
Set
Values_
1
(
theName
:
Quantity_NameOfColor
)
:
void
Parameters
theName:
Quantity_NameOfColor
Returns
void
Set
Values_
2
Set
Values_
2
(
theC1
:
number
, theC2
:
number
, theC3
:
number
, theType
:
Quantity_TypeOfColor
)
:
void
Parameters
theC1:
number
theC2:
number
theC3:
number
theType:
Quantity_TypeOfColor
Returns
void
Square
Distance
Square
Distance
(
theColor
:
Quantity_Color
)
:
number
Parameters
theColor:
Quantity_Color
Returns
number
Values
Values
(
theC1
:
number
, theC2
:
number
, theC3
:
number
, theType
:
Quantity_TypeOfColor
)
:
void
Parameters
theC1:
number
theC2:
number
theC3:
number
theType:
Quantity_TypeOfColor
Returns
void
delete
delete
(
)
:
void
Returns
void
Static
Argb2color
Argb2color
(
theARGB
:
Graphic3d_ZLayerId
, theColor
:
Quantity_Color
)
:
void
Parameters
theARGB:
Graphic3d_ZLayerId
theColor:
Quantity_Color
Returns
void
Static
Color2argb
Color2argb
(
theColor
:
Quantity_Color
, theARGB
:
Graphic3d_ZLayerId
)
:
void
Parameters
theColor:
Quantity_Color
theARGB:
Graphic3d_ZLayerId
Returns
void
Static
Color
From
Hex
Color
From
Hex
(
theHexColorString
:
string
, theColor
:
Quantity_Color
)
:
boolean
Parameters
theHexColorString:
string
theColor:
Quantity_Color
Returns
boolean
Static
Color
From
Name_
1
Color
From
Name_
1
(
theName
:
string
, theColor
:
Quantity_NameOfColor
)
:
boolean
Parameters
theName:
string
theColor:
Quantity_NameOfColor
Returns
boolean
Static
Color
From
Name_
2
Color
From
Name_
2
(
theColorNameString
:
string
, theColor
:
Quantity_Color
)
:
boolean
Parameters
theColorNameString:
string
theColor:
Quantity_Color
Returns
boolean
Static
Color
To
Hex
Color
To
Hex
(
theColor
:
Quantity_Color
, theToPrefixHash
:
boolean
)
:
XCAFDoc_PartId
Parameters
theColor:
Quantity_Color
theToPrefixHash:
boolean
Returns
XCAFDoc_PartId
Static
Convert_
HLS_
To_
LinearRGB
Convert_
HLS_
To_
LinearRGB
(
theHls
:
NCollection_Vec3
<
float
>
)
:
any
Parameters
theHls:
NCollection_Vec3
<
float
>
Returns
any
Static
Convert_
HLS_
To_
sRGB
Convert_
HLS_
To_
sRGB
(
theHls
:
NCollection_Vec3
<
float
>
)
:
any
Parameters
theHls:
NCollection_Vec3
<
float
>
Returns
any
Static
Convert_
Lab_
To_
Lch
Convert_
Lab_
To_
Lch
(
theLab
:
NCollection_Vec3
<
float
>
)
:
any
Parameters
theLab:
NCollection_Vec3
<
float
>
Returns
any
Static
Convert_
Lab_
To_
LinearRGB
Convert_
Lab_
To_
LinearRGB
(
theLab
:
NCollection_Vec3
<
float
>
)
:
any
Parameters
theLab:
NCollection_Vec3
<
float
>
Returns
any
Static
Convert_
Lch_
To_
Lab
Convert_
Lch_
To_
Lab
(
theLch
:
NCollection_Vec3
<
float
>
)
:
any
Parameters
theLch:
NCollection_Vec3
<
float
>
Returns
any
Static
Convert_
LinearRGB_
To_
HLS
Convert_
LinearRGB_
To_
HLS
(
theRgb
:
NCollection_Vec3
<
float
>
)
:
any
Parameters
theRgb:
NCollection_Vec3
<
float
>
Returns
any
Static
Convert_
LinearRGB_
To_
Lab
Convert_
LinearRGB_
To_
Lab
(
theRgb
:
NCollection_Vec3
<
float
>
)
:
any
Parameters
theRgb:
NCollection_Vec3
<
float
>
Returns
any
Static
Convert_
LinearRGB_
To_
sRGB_
1
Convert_
LinearRGB_
To_
sRGB_
1
(
theLinearValue
:
number
)
:
number
Parameters
theLinearValue:
number
Returns
number
Static
Convert_
LinearRGB_
To_
sRGB_
2
Convert_
LinearRGB_
To_
sRGB_
2
(
theLinearValue
:
number
)
:
number
Parameters
theLinearValue:
number
Returns
number
Static
Convert_
LinearRGB_
To_
sRGB_
approx22_
1
Convert_
LinearRGB_
To_
sRGB_
approx22_
1
(
theLinearValue
:
number
)
:
number
Parameters
theLinearValue:
number
Returns
number
Static
Convert_
LinearRGB_
To_
sRGB_
approx22_
2
Convert_
LinearRGB_
To_
sRGB_
approx22_
2
(
theRGB
:
NCollection_Vec3
<
float
>
)
:
any
Parameters
theRGB:
NCollection_Vec3
<
float
>
Returns
any
Static
Convert_
sRGB_
To_
HLS
Convert_
sRGB_
To_
HLS
(
theRgb
:
NCollection_Vec3
<
float
>
)
:
any
Parameters
theRgb:
NCollection_Vec3
<
float
>
Returns
any
Static
Convert_
sRGB_
To_
LinearRGB_
1
Convert_
sRGB_
To_
LinearRGB_
1
(
thesRGBValue
:
number
)
:
number
Parameters
thesRGBValue:
number
Returns
number
Static
Convert_
sRGB_
To_
LinearRGB_
2
Convert_
sRGB_
To_
LinearRGB_
2
(
thesRGBValue
:
number
)
:
number
Parameters
thesRGBValue:
number
Returns
number
Static
Convert_
sRGB_
To_
LinearRGB_
approx22_
1
Convert_
sRGB_
To_
LinearRGB_
approx22_
1
(
thesRGBValue
:
number
)
:
number
Parameters
thesRGBValue:
number
Returns
number
Static
Convert_
sRGB_
To_
LinearRGB_
approx22_
2
Convert_
sRGB_
To_
LinearRGB_
approx22_
2
(
theRGB
:
NCollection_Vec3
<
float
>
)
:
any
Parameters
theRGB:
NCollection_Vec3
<
float
>
Returns
any
Static
Epsilon
Epsilon
(
)
:
number
Returns
number
Static
Hls
Rgb
Hls
Rgb
(
theH
:
number
, theL
:
number
, theS
:
number
, theR
:
number
, theG
:
number
, theB
:
number
)
:
void
Parameters
theH:
number
theL:
number
theS:
number
theR:
number
theG:
number
theB:
number
Returns
void
Static
Name_
2
Name_
2
(
theR
:
number
, theG
:
number
, theB
:
number
)
:
Quantity_NameOfColor
Parameters
theR:
number
theG:
number
theB:
number
Returns
Quantity_NameOfColor
Static
Rgb
Hls
Rgb
Hls
(
theR
:
number
, theG
:
number
, theB
:
number
, theH
:
number
, theL
:
number
, theS
:
number
)
:
void
Parameters
theR:
number
theG:
number
theB:
number
theH:
number
theL:
number
theS:
number
Returns
void
Static
Set
Epsilon
Set
Epsilon
(
theEpsilon
:
number
)
:
void
Parameters
theEpsilon:
number
Returns
void
Static
String
Name
String
Name
(
theColor
:
Quantity_NameOfColor
)
:
string
Parameters
theColor:
Quantity_NameOfColor
Returns
string
Exports
Quantity_
Color_
1
constructor
Blue
Change
Contrast
Change
Intensity
Delta
Delta
E2000
Distance
Dump
Json
Green
Hue
Init
From
Json
Is
Different
Is
Equal
Light
Name_
1
Red
Rgb
Saturation
Set
Values_
1
Set
Values_
2
Square
Distance
Values
delete
Argb2color
Color2argb
Color
From
Hex
Color
From
Name_
1
Color
From
Name_
2
Color
To
Hex
Convert_
HLS_
To_
LinearRGB
Convert_
HLS_
To_
sRGB
Convert_
Lab_
To_
Lch
Convert_
Lab_
To_
LinearRGB
Convert_
Lch_
To_
Lab
Convert_
LinearRGB_
To_
HLS
Convert_
LinearRGB_
To_
Lab
Convert_
LinearRGB_
To_
sRGB_
1
Convert_
LinearRGB_
To_
sRGB_
2
Convert_
LinearRGB_
To_
sRGB_
approx22_
1
Convert_
LinearRGB_
To_
sRGB_
approx22_
2
Convert_
sRGB_
To_
HLS
Convert_
sRGB_
To_
LinearRGB_
1
Convert_
sRGB_
To_
LinearRGB_
2
Convert_
sRGB_
To_
LinearRGB_
approx22_
1
Convert_
sRGB_
To_
LinearRGB_
approx22_
2
Epsilon
Hls
Rgb
Name_
2
Rgb
Hls
Set
Epsilon
String
Name
Generated using
TypeDoc