Constructors
constructor
- new Color(color): Color
Parameters
- color: string | HexDecimalObject
Properties
Private color
color: HexDecimalObject
Methods
alpha
- alpha(factor): HexDecimalObject
Returns HexDecimalObject
blend
- blend(factor, secondaryColor): Color
Parameters
- factor: number
- secondaryColor: HexDecimalObject
getColor
- getColor(): HexDecimalObject
Returns HexDecimalObject
hex
- hex(): string
Returns string
invert
- invert(): string
Returns string
rgb
- rgb(): string
Returns string