mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
Add .toString() method for Color objects
This commit is contained in:
@@ -88,6 +88,10 @@ export default class Color {
|
||||
toJSON () {
|
||||
return this.alpha === 1 ? this.toHexString() : this.toRGBAString()
|
||||
}
|
||||
|
||||
toString () {
|
||||
return this.toRGBAString()
|
||||
}
|
||||
|
||||
isEqual (color) {
|
||||
if (this === color) {
|
||||
|
||||
Reference in New Issue
Block a user