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

Copy or clone color #84

Closed
hackhat opened this issue Mar 24, 2015 · 4 comments
Closed

Copy or clone color #84

hackhat opened this issue Mar 24, 2015 · 4 comments

Comments

@hackhat
Copy link

hackhat commented Mar 24, 2015

I would like to copy or clone a color so any changes will not mess the source.

@bgrins
Copy link
Owner

bgrins commented Mar 24, 2015

Hello, you should be able to call tinycolor(originalColor.toString()). I've added a note to the documentation about this: https://github.com/bgrins/TinyColor#cloning

@hackhat
Copy link
Author

hackhat commented Mar 24, 2015

Yes, this is the current method I'm using. But using like this would be better myColor.clone() than that. I can make a pull request if interested.

@bgrins
Copy link
Owner

bgrins commented Mar 24, 2015

OK, sure! Can you add an instance method for clone and also add a new test function for it after the "Original input" function?

@bgrins
Copy link
Owner

bgrins commented Oct 14, 2015

Closed by #105

@bgrins bgrins closed this as completed Oct 14, 2015
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

No branches or pull requests

2 participants