Merge pull request #16161 from atom/wl-color-to-string

Add .toString() method for Color objects
This commit is contained in:
Ian Olsen
2018-01-17 14:51:03 -08:00
committed by GitHub

View File

@@ -89,6 +89,10 @@ export default class Color {
return this.alpha === 1 ? this.toHexString() : this.toRGBAString()
}
toString () {
return this.toRGBAString()
}
isEqual (color) {
if (this === color) {
return true