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

Same color returns different results #30

Open
Avladd opened this issue Jul 11, 2019 · 0 comments
Open

Same color returns different results #30

Avladd opened this issue Jul 11, 2019 · 0 comments

Comments

@Avladd
Copy link

Avladd commented Jul 11, 2019

There seems to be inconsistent return based on the input colors. To be more precise i have this input and threshold is set to 0 :

    firstColor: "rgb(255, 255, 255)",
    secondColor: "rgb(255, 255, 255)"
  }

Expected behaviour:
Return combinations array with first object having contrast set to 1;

Actual behaviour:
Returns empty combinations array;

Meanwhile having the same parameters but this input:

    firstColor: "rgba(255, 255, 255, 1)",
    secondColor: "rgb(255, 255, 255)"
  }

returns the expected combinations array with contrast of 1.

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

1 participant