Skip to main content

GrayscaleColor

Classes

GrayscaleColor

Extends

Constructors

Constructor
new GrayscaleColor(
value,
alpha,
profile?): GrayscaleColor;
Parameters
ParameterTypeDefault value
valuenumberundefined
alphanumberundefined
profilestringnull
Returns

GrayscaleColor

Overrides

ProcessColor.constructor

Accessors

alpha
Get Signature
get alpha(): number;
Returns

number

Inherited from

ProcessColor.alpha

colorSpace
Get Signature
get colorSpace(): ColorSpace;
Returns

ColorSpace

Inherited from

ProcessColor.colorSpace

isTransparent
Get Signature
get isTransparent(): boolean;
Returns

boolean

Inherited from

ProcessColor.isTransparent

l
Get Signature
get l(): number;
Returns

number

profile
Get Signature
get profile(): string;
Returns

string

Inherited from

ProcessColor.profile

Methods

clone()
clone(): GrayscaleColor;
Returns

GrayscaleColor

Overrides

ProcessColor.clone

equals()
equals(other): boolean;
Parameters
ParameterType
otherColor
Returns

boolean

Overrides

ProcessColor.equals

getData()
getData(): IGrayscaleColor;
Returns

IGrayscaleColor

Overrides

ProcessColor.getData

toString()
toString(): string;

Returns a string representation of an object.

Returns

string

equals()
static equals(a, b): boolean;
Parameters
ParameterType
aColor
bColor
Returns

boolean

Inherited from

ProcessColor.equals

Interfaces

IGrayscaleColor

Extends

Properties

alpha
alpha: number;
Inherited from

IProcessColor.alpha

colorSpace
colorSpace: ColorSpace;
Inherited from

IProcessColor.colorSpace

l
l: number;
profile
profile: string;
Inherited from

IProcessColor.profile

Was this page helpful?