Skip to content

Commit

Permalink
renane to toHexString, use it in ColorProfile, phetsims/fourier-mak…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 13, 2020
1 parent e3d4658 commit c133ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/util/Color.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ class Color {
* @public
* @returns {string}
*/
toHex() {
toHexString() {
let hexString = this.toNumber().toString( 16 );
while ( hexString.length < 6 ) {
hexString = `0${hexString}`;
Expand All @@ -586,7 +586,7 @@ class Color {
g: this.g,
b: this.b,
a: this.a,
hex: this.toHex()
hex: this.toHexString()
};
}

Expand Down

0 comments on commit c133ce1

Please sign in to comment.