gka / palettes Goto Github PK
View Code? Open in Web Editor NEWA tool for creating nice, percerptually correct and colorblind-safe color palettes.
Home Page: https://vis4.net/palettes
A tool for creating nice, percerptually correct and colorblind-safe color palettes.
Home Page: https://vis4.net/palettes
Hi,
Would you consider putting this under an open-source license?
Thanks
Hello,
The tool is awesome, and I'd like to to share links like http://gka.github.io/palettes/#colors=#132b43,#54aef3|steps=7|bez=1|coL=1 in the github wiki, or using URL shorteners like bit.ly.
However the pipes are escaped the URL is broken, e.g. in https://github.com/Linkurious/linkurious.js/wiki/How-to-craft-colors
Any idea to fix it?
Thanks
Don't ask me how I ended up with these settings but they end up locking the UI somehow (you can click, but nothing updates), requiring a refresh on a clean URL:
Figured Out.
I get an Unexpected token '='
on the line return = scaleThreshold()
.
https://github.com/gka/palettes/blame/de570b36d0658610850e82c36e9cad12414ce314/src/Export.svelte#L23
Can this tool be used as a package?
Does it export functions to get color palettes given the options that appear on the website?
That seems to be not the case. Did anyone extend this repo?
I love this palette generator and it would be even more helpful if it supported CMYK.
As far as I can see it's already available in the chroma.js package? https://www.vis4.net/chromajs/#chroma-cmyk
(sorry, not a programmer)
When the option "correct lightness" is active, sometimes color-transitions oversteer.
Example: http://vis4.net/palettes/#/9|s|0f62fe,33b1ff,d02670|ffffe0,ff005e,93003a|0|1
I know the project is inactive, but just in case... CIELAB has pretty bad hue shift for blues.
https://andrewringler.github.io/palettes/#/5|s|0000ff||1|1|0|
Hi,
Thanks for a great tool. It was very helpful when we were doing research for color palettes for data visualisation.
One thing we still quite struggle with is making sure the palette is colour-blind friendly.
You provide the check if pallete is "colorblind-safe", but it seems to be checking only the pairs of colors that are distinguishable in normal palette. If colors are too similar in normal pallete, they are ignored in the check completely.
It would be great if there was any way you could visualize which colors in the palette are too similar to each other - as that seems to be causing a kind of "false positive" colorblind-safe check (the distinguishable colors pass, but there are some that are not-distinguishable, so they are ignored in the check).
For an edge-case example. A palette of nearly identical colors is marked as "colorblind-safe" by the tool, while obviously it's not a good palette for any kind of user:
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'scale')
at g.bezier (bundle.js:1:40119)
at t.$$.update (bundle.js:1:57693)
at A (bundle.js:1:1755)
at U (bundle.js:1:1587)
When manually setting the steps
query parameter:
http://gka.github.io/palettes/#colors=lightyellow,orange,deeppink,darkred|steps=11|bez=1|coL=1
The steps
query parameter automatically updates to 7
:
http://gka.github.io/palettes/#colors=lightyellow,orange,deeppink,darkred|steps=7|bez=1|coL=1
The provided step
query parameter should be retained and applied. All other query parameters (i.e. colors
, bez
, and coL
) work as expected.
This is a feature request
Support for other color representations would be great, e.g. rgb()
, rgba()
, hsl()
, hsla()
. https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
Right now some of them get parsed but into something wrong. E.g. rgb(255, 0, 153, 1)
will get parsed as #115533
while it is #FF0099
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.