Back to Website
Show / Hide Table of Contents

Class RgbColor

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

Constructors

(constructor)(r, g, b, alpha, profile)

Constructs a new instance of the RgbColor class

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

Properties

_colorSpace

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

b

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

g

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

r

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

Methods

clone()

Declaration
clone(): RgbColor;
Returns
Type Description
RgbColor

equals(other)

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

getData()

Declaration
getData(): IRgbColor;
Returns
Type Description
IRgbColor

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