Comments (7)
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.
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.
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.
Adding your CPP file here for posterity. I've got some work ahead of me. :)
from code.pyret.org.
not c++! it's TypeScript
from code.pyret.org.
That's odd - when I downloaded the file it had a .cpp
extension...
from code.pyret.org.
@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)
- test block with no tests, and test counts HOT 1
- difference in presentation of incomparability error HOT 6
- Chart package: residuals HOT 18
- `color` does not enforce refinements HOT 3
- Should give more nudging to save a copy on shared files
- “Cancel”/“close” distinction
- Hide the import code in the publish menu
- overlay adding unecessary pixels? HOT 2
- add pi, E and e to constants context
- Pyret Blocks (tracking issue) HOT 8
- modal-prompt.js changes don't get into build HOT 3
- essentials2021 context now exports e HOT 1
- Some chart functions run out of colors (likely array index issue) HOT 6
- Can HTML entities also be replaced? HOT 2
- modes should work for categorical data HOT 7
- Choose context button blindly grabs the text after the first 11 chars HOT 1
- Don't break use-context shared-gdrive if a file is renamed HOT 5
- More Stats Functions HOT 1
- Need to make some blocks/ tests HOT 1
- Fresh build not working? HOT 3
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 code.pyret.org.