GrayscaleColor
Classes
GrayscaleColor
Extends
Constructors
Constructor
new GrayscaleColor(
value,
alpha,
profile?): GrayscaleColor;
Parameters
| Parameter | Type | Default value |
|---|---|---|
value | number | undefined |
alpha | number | undefined |
profile | string | null |
Returns
Overrides
Accessors
alpha
Get Signature
get alpha(): number;
Returns
number
Inherited from
colorSpace
Get Signature
get colorSpace(): ColorSpace;
Returns
Inherited from
isTransparent
Get Signature
get isTransparent(): boolean;
Returns
boolean
Inherited from
l
Get Signature
get l(): number;
Returns
number
profile
Get Signature
get profile(): string;
Returns
string
Inherited from
Methods
clone()
clone(): GrayscaleColor;
Returns
Overrides
equals()
equals(other): boolean;
Parameters
| Parameter | Type |
|---|---|
other | Color |
Returns
boolean
Overrides
getData()
getData(): IGrayscaleColor;
Returns
Overrides
toString()
toString(): string;
Returns a string representation of an object.
Returns
string
equals()
static equals(a, b): boolean;
Parameters
| Parameter | Type |
|---|---|
a | Color |
b | Color |
Returns
boolean
Inherited from
Interfaces
IGrayscaleColor
Extends
Properties
alpha
alpha: number;
Inherited from
colorSpace
colorSpace: ColorSpace;
Inherited from
l
l: number;
profile
profile: string;