mxcad API 文档 / MdGeColor
Class: MdGeColor
表示颜色
Hierarchy
↳
MdGeColor
Table of contents
Constructors
Properties
Methods
- Blue
- ChangeContrast
- ChangeIntensity
- DeltaE2000
- Distance
- Green
- Hue
- IsDifferent
- IsEqual
- Light
- Name
- Red
- Saturation
- SetValues
- SquareDistance
- StringName
- getImp
- initTempObject
Constructors
constructor
• new MdGeColor(p1?
, p2?
, p3?
, p4?
)
Parameters
Name | Type |
---|---|
p1? | number | object |
p2? | number |
p3? | number |
p4? | MxTypeOfColor |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Blue
▸ Blue(): number
Returns
number
ChangeContrast
▸ ChangeContrast(theDelta
): void
Parameters
Name | Type |
---|---|
theDelta | number |
Returns
void
ChangeIntensity
▸ ChangeIntensity(theDelta
): void
Parameters
Name | Type |
---|---|
theDelta | number |
Returns
void
DeltaE2000
▸ DeltaE2000(theOther
): number
Parameters
Name | Type |
---|---|
theOther | MdGeColor |
Returns
number
Distance
▸ Distance(theColor
): number
Parameters
Name | Type |
---|---|
theColor | MdGeColor |
Returns
number
Green
▸ Green(): number
Returns
number
Hue
▸ Hue(): number
Returns
number
IsDifferent
▸ IsDifferent(theOther
): boolean
Parameters
Name | Type |
---|---|
theOther | MdGeColor |
Returns
boolean
IsEqual
▸ IsEqual(theOther
): boolean
Parameters
Name | Type |
---|---|
theOther | MdGeColor |
Returns
boolean
Light
▸ Light(): number
Returns
number
Name
▸ Name(): MxNameOfColor
Returns
Red
▸ Red(): number
Returns
number
Saturation
▸ Saturation(): number
Returns
number
SetValues
▸ SetValues(p1
, p2?
, p3?
, p4?
): void
Parameters
Name | Type |
---|---|
p1 | number |
p2? | number |
p3? | number |
p4? | MxTypeOfColor |
Returns
void
SquareDistance
▸ SquareDistance(theColor
): number
Parameters
Name | Type |
---|---|
theColor | MdGeColor |
Returns
number
StringName
▸ StringName(theColor
): string
Parameters
Name | Type |
---|---|
theColor | MxNameOfColor |
Returns
string
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void