Back to Website
Show / Hide Table of Contents

Class GrayscaleColor

Inheritance
Color
ProcessColor
GrayscaleColor
Package: @aurigma/design-atoms-model

Constructors

(constructor)(value, alpha, profile)

Constructs a new instance of the GrayscaleColor class

Declaration
constructor(value: number, alpha: number, profile?: string);
Parameters
Type Name Description
number value
number alpha
string profile

Properties

_colorSpace

Declaration
protected readonly _colorSpace: ColorSpace;
Property Value
Type Description
ColorSpace

l

Declaration
get l(): number;
Property Value
Type Description
number

Methods

clone()

Declaration
clone(): GrayscaleColor;
Returns
Type Description
GrayscaleColor

equals(other)

Declaration
equals(other: Color): boolean;
Parameters
Type Name Description
Color other
Returns
Type Description
boolean

getData()

Declaration
getData(): IGrayscaleColor;
Returns
Type Description
IGrayscaleColor

toString()

Declaration
toString(): string;
Returns
Type Description
string
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback