diff --git a/src/color.js b/src/color.js index 2f2947e16..4f2be5c3c 100644 --- a/src/color.js +++ b/src/color.js @@ -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) {