How about using dictionaries -- xkcd[:skyblue] = 0x06c2ac? This would open up the way for source specific named colors (e.g. paints).
On Monday, November 30, 2015 at 5:38:10 PM UTC-5, Alex Mellnik wrote: > > On a related note, I've been thinking that it would be nice to include the > results of the xkcd color survey <https://xkcd.com/color/rgb/> in > Colors.jl. Right now it has the CSS/SVG and X11 colors which is great for > standardization, but sometimes you want to be able to get a RGB value > corresponding to fairly specific and easy-to-remember color names (mocha, > cerulean blue, etc). I was originally going to stick it in a different > package, but there might be a nice way to separate these names in Colors.jl > > -A > > On Tuesday, November 24, 2015 at 2:08:35 PM UTC-8, Randy Zwitch wrote: >> >> Since the Julia ecosystem is getting bigger, I figured I'd propose this >> here first and see what people think is the right way forward (instead of >> wasting people's time at METADATA) >> >> In the R community, they've created two packages of novelty color >> schemes: Wes Anderson <https://github.com/karthik/wesanderson> and >> Beyonce <https://github.com/dill/beyonce>. While humorous, these color >> palettes are interesting to me and I'd like to make them available in >> Vega.jl (and Julia more broadly). Should I: >> >> 1) Not do it at all....because this is a serious, scientific community! >> 2) Do two separate packages, mimicking R >> 3) Create a single NoveltyColors.jl package, in case there are other >> palettes that come up in the future >> 4) Make a feature request at Colors.jl (really not my favorite choice, >> since there is so much cited research behind the palettes) >> >> I neglected to mention ColorBrewer.jl (which Vega.jl uses), since >> ColorBrewer is a known entity in the plotting community. >> >> What do people think? Note, I'm not looking for anyone to do the work >> (I'll do it), just looking for packaging input. >> >