Giter Site home page Giter Site logo

Comments (10)

internalfx avatar internalfx commented on June 16, 2024

@astanciu Thanks for the bug report.

var pallet = DistinctColors({count:50, lightMin: 50, samples: 10000})

Does that work?

from distinct-colors.

astanciu avatar astanciu commented on June 16, 2024

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.

astanciu avatar astanciu commented on June 16, 2024

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.

internalfx avatar internalfx commented on June 16, 2024

Thanks, I think I have an idea what's going on.

from distinct-colors.

internalfx avatar internalfx commented on June 16, 2024

I'm going to write a test suite for this.

from distinct-colors.

internalfx avatar internalfx commented on June 16, 2024

@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.

internalfx avatar internalfx commented on June 16, 2024

Found the real issue... closing in favor of #2

from distinct-colors.

internalfx avatar internalfx commented on June 16, 2024

@astanciu please try the latest 1.0.4 problem should be solved for good now.

from distinct-colors.

owickstrom avatar owickstrom commented on June 16, 2024

Hi!

I got the same error with lightMin: 20 using version 1.0.4. lightMin: 25 works.

from distinct-colors.

internalfx avatar internalfx commented on June 16, 2024

@owickstrom Same exact error message?

TypeError: Reduce of empty array with no initial value

from distinct-colors.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.