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

Add support for an options object #169

Open
lokesh opened this issue Aug 26, 2019 · 0 comments
Open

Add support for an options object #169

lokesh opened this issue Aug 26, 2019 · 0 comments
Projects

Comments

@lokesh
Copy link
Owner

lokesh commented Aug 26, 2019

  • Update the getColor and getPalette methods to support an options object as their second parameter.
  • If a numeric value is passed as the second arg, then it should fall back to using that as the quality option.

The creation of the options object will set up the library to add other features such as:

  • Return format (rgb or hex)
  • Area to sample (specify a portion of the image to sample)
  • Ability to toggle off the white/near-white and black/near-black exclusion
  • et al
@lokesh lokesh added this to In progress in v2 Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
v2
  
In progress
Development

No branches or pull requests

1 participant