Coder Social home page Coder Social logo

Comments (7)

blerner avatar blerner commented on September 15, 2024

Aesthetically I don't think you quite want to use those, because honestly a bunch of the colors tend towards the olive-greeny-orange chunk of the color wheel... Also, even though pairwise any two consecutively generated colors have sufficient contrast, colors that are two apart do not tend to look as good together. (The gist of it is that each pair of colors is roughly 6/11s of the way around the circle, which gives a lot of contrast, but then colors 1 and 3 are only 1/11 apart. I'm simplifying away phi / pi irrational fractions, but that's the upshot.)

You likely want to use a different coloring generation scheme that generates a wider variety of colors (shades/tints, as well as hues). I attempted something like this at https://pyret.slack.com/archives/C1E30822E/p1639246388000200, for what it's worth...

from code.pyret.org.

schanzer avatar schanzer commented on September 15, 2024

Cool! This will take me some time to port over to CPO, but it's helpful to have a good place to start.

On the flip side - is this the kind of thing we'd want to expose from within CPO itself? Assuming the answer is no, but wanted to check since it's possible that other libraries might want something like this.

from code.pyret.org.

blerner avatar blerner commented on September 15, 2024

No. I think this may be the sort of thing we'd like to have as a community-supplied library, but I don't think we need it to ever be "baked in" to CPO.

from code.pyret.org.

schanzer avatar schanzer commented on September 15, 2024

2d color palette.txt

Adding your CPP file here for posterity. I've got some work ahead of me. :)

from code.pyret.org.

blerner avatar blerner commented on September 15, 2024

not c++! it's TypeScript

from code.pyret.org.

schanzer avatar schanzer commented on September 15, 2024

That's odd - when I downloaded the file it had a .cpp extension...

from code.pyret.org.

schanzer avatar schanzer commented on September 15, 2024

@blerner our need for this is long gone, and we're the only ones who ever asked for it. OK to close?

from code.pyret.org.

Related Issues (20)

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.