randomColor icon indicating copy to clipboard operation
randomColor copied to clipboard

Setting count makes hue turn red

Open NightMachinery opened this issue 6 years ago • 2 comments

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 https://github.com/davidmerfield/randomColor/issues/114.

NightMachinery avatar Aug 13 '19 12:08 NightMachinery

i will fix this bug!

AlirezaEiji191379 avatar Dec 24 '21 11:12 AlirezaEiji191379

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

AlirezaEiji191379 avatar Dec 24 '21 12:12 AlirezaEiji191379