Comments (10)
@astanciu Thanks for the bug report.
var pallet = DistinctColors({count:50, lightMin: 50, samples: 10000})
Does that work?
from distinct-colors.
It got lightMin of 50 to work, but it was extremely slow. I then tried lightMin at 80 and got the same error.
from distinct-colors.
There's really strange stuff going on. lightMin: 55, lightMax 77, for ex, work. Pretty much the same for the other values, certain ranges work
from distinct-colors.
Thanks, I think I have an idea what's going on.
from distinct-colors.
I'm going to write a test suite for this.
from distinct-colors.
@astanciu grab v1.0.2
should work much better. I wont say the problem is totally resolved yet though.
However, if a setting works once, it should work everytime. Also, it wont error out anymore. but you could get duplicate colors.
from distinct-colors.
Found the real issue... closing in favor of #2
from distinct-colors.
@astanciu please try the latest 1.0.4
problem should be solved for good now.
from distinct-colors.
Hi!
I got the same error with lightMin: 20
using version 1.0.4
. lightMin: 25
works.
from distinct-colors.
@owickstrom Same exact error message?
TypeError: Reduce of empty array with no initial value
from distinct-colors.
Related Issues (13)
- Reduce or empty array with no initial value error HOT 1
- state issue HOT 5
- dist build issue HOT 6
- Typescript description file required HOT 1
- Exception thrown in some specific condition (related to counts parameter) HOT 3
- Duplicate samples being created in certain cases.
- This is great! What else can it do? HOT 2
- Generating an open-ended stream of distinct colors HOT 2
- Not working in Internet Explorer HOT 1
- what settings work best to create light yet distinct colors? HOT 2
- Color blindness HOT 1
- Doesn't generate palette with (relatively) large number of colors HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distinct-colors.