Skip to main content

ColorFactory

Classes​

ColorFactory​

Constructors​

Constructor​
new ColorFactory(): ColorFactory;
Returns​

ColorFactory

Accessors​

rgbColorProfileId​
Set Signature​
set static rgbColorProfileId(value): void;
Parameters​
ParameterType
valuestring
Returns​

void

Methods​

createColor()​
static createColor(
value,
throwException?,
attachRgbColorProfile?): Color;
Parameters​
ParameterTypeDefault value
value| string | IColor | Colorundefined
throwExceptionbooleanfalse
attachRgbColorProfilebooleanfalse
Returns​

Color

registerColor()​
static registerColor(
typeName,
shortName,
colorConstructor): void;
Parameters​
ParameterType
typeNamestring
shortNamestring
colorConstructorColorConstructor
Returns​

void

Was this page helpful?