diff --git a/js/util/Color.js b/js/util/Color.js index 5f4b942b0..0a9579264 100644 --- a/js/util/Color.js +++ b/js/util/Color.js @@ -567,7 +567,7 @@ class Color { * @public * @returns {string} */ - toHex() { + toHexString() { let hexString = this.toNumber().toString( 16 ); while ( hexString.length < 6 ) { hexString = `0${hexString}`; @@ -586,7 +586,7 @@ class Color { g: this.g, b: this.b, a: this.a, - hex: this.toHex() + hex: this.toHexString() }; }