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 between red and FF0000 #138

Open
Dtrieb opened this issue Mar 21, 2020 · 2 comments
Open

Different between red and FF0000 #138

Dtrieb opened this issue Mar 21, 2020 · 2 comments

Comments

@Dtrieb
Copy link

Dtrieb commented Mar 21, 2020

I use the API server on localhost.

There are different between

blink1/fadeToRGB?rgb=red
and
blink1/fadeToRGB?rgb=FF0000

red is shines lower then FF0000

@todbot
Copy link
Owner

todbot commented Mar 21, 2020

Oh interesting. Thanks, I'll look into it. We're using the tinycolor2 library for color parsing. I wonder if there's a conceptual difference to it between "red" and "#FF0000".

@todbot
Copy link
Owner

todbot commented Jun 30, 2020

Hi,
I've not been able to replicate this issue. Can you provide more details? What responses are you getting from the API server?

For instance, this is what I'm seeing:

% curl 'http://localhost:8934/blink1/fadeToRGB?rgb=red'
{
  "blink1Serials": [ ... ],
  "lastColor": "#ff0000",
  "lastTime": 0.1,
  "lastLedn": 0,
  "cmd": "fadeToRGB"
}
% curl 'http://localhost:8934/blink1/fadeToRGB?rgb=FF0000'
{
  "blink1Serials": [...],
  "lastColor": "#ff0000",
  "lastTime": 0.1,
  "lastLedn": 0,
  "cmd": "fadeToRGB"
}

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