Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color.class update #3615

Merged
merged 19 commits into from
Jan 9, 2017
Merged

Color.class update #3615

merged 19 commits into from
Jan 9, 2017

Conversation

neopheus
Copy link
Contributor

@neopheus neopheus commented Jan 9, 2017

New Unit Test
JSDoc Update
New toHexa() function

@asturur
Copy link
Member

asturur commented Jan 9, 2017

Thanks for the change, could you address my comment?

a = a.toString(16);
a = (a.length === 1) ? ('0' + a) : a;

return r.toUpperCase() + g.toUpperCase() + b.toUpperCase() + a.toUpperCase();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all this could be return this.toHex() + a.toUpperCase() so we do not need to duplicate toHex code again.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's do :)

@asturur asturur merged commit f755192 into fabricjs:master Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants