davidmerfield / davidmerfield/randomColor

Is there a way to control the "distribution" of generated colors?

Open
#136 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6.1k
Forks
408
PR merge metrics
No merged PRs in 30d

Description

Right now I'm using

```javascript
let colors = randomColor({
seed: 0, // Just a fixed seed so that generated colors are deterministic.
count: count,
luminosity: "bright",
});
```

With `count = 2`, the colors I get is somewhat similiar to each other (blue-green ish).

![image](https://user-images.githubusercontent.com/2592205/89726025-d0ec7500-d9ca-11ea-8ff7-d7208e934742.png)

**I would like to get colors that are very different visually**. What those colors are does not really matter.

Currently I can't find a way to control this behavii. Or is there some magic seeds that can work better?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.