Skip to content
On this page

mxcad API 文档 / MdGeColor

Class: MdGeColor

表示颜色

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeColor(p1?, p2?, p3?, p4?)

Parameters

NameType
p1?number | object
p2?number
p3?number
p4?MxTypeOfColor

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

Blue

Blue(): number

Returns

number


ChangeContrast

ChangeContrast(theDelta): void

Parameters

NameType
theDeltanumber

Returns

void


ChangeIntensity

ChangeIntensity(theDelta): void

Parameters

NameType
theDeltanumber

Returns

void


DeltaE2000

DeltaE2000(theOther): number

Parameters

NameType
theOtherMdGeColor

Returns

number


Distance

Distance(theColor): number

Parameters

NameType
theColorMdGeColor

Returns

number


Green

Green(): number

Returns

number


Hue

Hue(): number

Returns

number


IsDifferent

IsDifferent(theOther): boolean

Parameters

NameType
theOtherMdGeColor

Returns

boolean


IsEqual

IsEqual(theOther): boolean

Parameters

NameType
theOtherMdGeColor

Returns

boolean


Light

Light(): number

Returns

number


Name

Name(): MxNameOfColor

Returns

MxNameOfColor


Red

Red(): number

Returns

number


Saturation

Saturation(): number

Returns

number


SetValues

SetValues(p1, p2?, p3?, p4?): void

Parameters

NameType
p1number
p2?number
p3?number
p4?MxTypeOfColor

Returns

void


SquareDistance

SquareDistance(theColor): number

Parameters

NameType
theColorMdGeColor

Returns

number


StringName

StringName(theColor): string

Parameters

NameType
theColorMxNameOfColor

Returns

string


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject