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

Setting count makes hue turn red #127

Open
NightMachinery opened this issue Aug 13, 2019 · 2 comments
Open

Setting count makes hue turn red #127

NightMachinery opened this issue Aug 13, 2019 · 2 comments
Labels

Comments

@NightMachinery
Copy link

NightMachinery commented Aug 13, 2019

Update: I have run several tests. Setting count is the cause of this bug.

I used this shell function for testing:

random-color-f () {
    node -e "var randomColor = require('randomcolor'); // import the script
var color = randomColor({count: 1}); // a hex code for an attractive color
console.log(JSON.stringify(color))" | jq -re '.[]'
}

Old report where I thought setting hue to random is the problem:

Here is a recording (In which I use the CLI of #126):
https://asciinema.org/a/262144
Here are screenshots of the gist of the video:
image

image

I have tested this multiple times, it always uses red. Possibly related to #114.

@NightMachinery NightMachinery changed the title Setting hue to random sets it to red actually Setting count makes hue turn red Aug 13, 2019
@AlirezaEiji191379
Copy link

i will fix this bug!

@AlirezaEiji191379
Copy link

i fixed the bug with the later pr that i have for another issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants