* Returns the hexadecimal representation of a color. * When the alpha channel value of the color is less than 1, * it outputs #rrggbbaa format instead of #rrggbb.
()
| 62 | * it outputs #rrggbbaa format instead of #rrggbb. |
| 63 | */ |
| 64 | public toHex(): string { |
| 65 | return rgbaToHex(this.rgba); |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Converts a color to RGB color space and returns an object. |