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

Different colours returned per-machine #47

Open
jbrooksuk opened this issue Jun 20, 2019 · 1 comment
Open

Different colours returned per-machine #47

jbrooksuk opened this issue Jun 20, 2019 · 1 comment

Comments

@jbrooksuk
Copy link

  • PHP: 7.3
  • OS: Comparing MacOS vs Ubuntu Docker Image

Given this image:

image

I'm getting different colours between running locally and in our testing environment.

On my Mac, the colours I get are:

  • #8B849F
  • #273647
  • #EBB6B4
  • #4E3C3E
  • #987132

Whereas on our testing environment (which is a Ubuntu Docker image, running from CircleCI) I get:

  • #F7ACB3
  • #9AA7C7
  • #B9752E
  • #FDD58D
  • #353A71

If we visualise these colours, we can see that they look okay. On the right, I've ordered colours to where they're most similar.

image

What would be the reason for seeing different colours?

@ksubileau
Copy link
Owner

ksubileau commented Jan 15, 2023

I have to admit it's still a bit of a mystery to me today, and any help identifying what's going on is welcome.
I suspect this is related to rounding issues (floating point or integer casting), but I'm not sure exactly what or how to work around this.

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