All Projects → JuliaGraphics → NamedColors.jl

JuliaGraphics / NamedColors.jl

Licence: other
More color names than you ever knew you wanted

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to NamedColors.jl

react-native-image-color-picker
Image color picker based on image source provided and return image different color palettes or average color palette
Stars: ✭ 25 (+4.17%)
Mutual labels:  color, color-palette
hcv-color
🌈 Color model HCV/HCG is an alternative to HSV and HSL, derived by Munsell color system, usable for Dark and Light themes... 🌈
Stars: ✭ 44 (+83.33%)
Mutual labels:  color, color-palette
react-native-color-panel
React Native Color Panel Component for iOS and Android 🏳️‍🌈
Stars: ✭ 21 (-12.5%)
Mutual labels:  color, color-palette
Colorbook
🎨 Color schemes for UI design - Optimized for foreground, background, border, etc. https://liyasthomas.github.io/colorbook
Stars: ✭ 148 (+516.67%)
Mutual labels:  color, color-palette
color-extractor
Biancoir is website that provide color extraction from an image with quantization algorithm.
Stars: ✭ 12 (-50%)
Mutual labels:  color, color-palette
Colors.lol
🎨 Overly descriptive color palettes
Stars: ✭ 207 (+762.5%)
Mutual labels:  color, color-palette
SwiftColorWheel
Delightful color picker wheel for iOS in Swift.
Stars: ✭ 37 (+54.17%)
Mutual labels:  color, color-palette
Colorschemes.jl
colorschemes, colormaps, gradients, and palettes
Stars: ✭ 55 (+129.17%)
Mutual labels:  color, color-palette
pantone-colors
Hex values of all 2310 Pantone colors
Stars: ✭ 147 (+512.5%)
Mutual labels:  color, color-palette
sanzo-wada
🎨 Interactive version of Sanzo Wada's - "A Dictionary of Color Combinations"
Stars: ✭ 139 (+479.17%)
Mutual labels:  color, color-palette
Colors App
🎨 A PWA for copying values from popular color palettes. Supports HEX, RGB, and HSL formats.
Stars: ✭ 90 (+275%)
Mutual labels:  color, color-palette
Extract-Color-Palette-Api
Create gradient drawable by extracting prominent colors from image⚫⚪
Stars: ✭ 16 (-33.33%)
Mutual labels:  color, color-palette
Gvcci
color extraction to turn images into 16 color palettes
Stars: ✭ 86 (+258.33%)
Mutual labels:  color, color-palette
colors
A gorgeous, accessible color system.
Stars: ✭ 748 (+3016.67%)
Mutual labels:  color, color-palette
Iconhandler
Tint you Icons, change the size, apply alpha color and set a position easily. 👓
Stars: ✭ 59 (+145.83%)
Mutual labels:  color, color-palette
quickpalette
🏃‍♀️🎨 R package for quick extraction of color palettes from text and images
Stars: ✭ 24 (+0%)
Mutual labels:  color, color-palette
Leonardo
Generate colors based on a desired contrast ratio
Stars: ✭ 973 (+3954.17%)
Mutual labels:  color, color-palette
Materialdesigncolor
This project shows the color in material design
Stars: ✭ 55 (+129.17%)
Mutual labels:  color, color-palette
imgpalr
R package for generating color palettes from arbitrary images.
Stars: ✭ 44 (+83.33%)
Mutual labels:  color, color-palette
color-loader
🎨 A webpack loader that extracts the color palette of an image
Stars: ✭ 14 (-41.67%)
Mutual labels:  color, color-palette

NamedColors

ColPrac: Contributor's Guide on Collaborative Practices for Community Packages

Build status

codecov.io

Colors.jl supports about 660 colors as named colorants. NamedColors.jl supports about 4,000. Honestly, the named colors in Colors.jl, and/or its capacity to generate good palettes, are far more useful.

But don't you want the quiet smugness the comes from knowing that your presentation is colored with XKCD's booger; or to really razzle dazzle them with Crayola's Razzle Dazzle Rose?

Perhaps you enjoy taking standardization to the next level, with the well defined colours from the NBS, ranging from oliveblack to vividgreenishblue.

A plot showing a random sample of colors from each set

Code for the above chart

All the colors:

Chart showing all colors sorted by Luv luminance

Link to full size PDF

Code to generate the PDF

Usage

For most users, the main function you are interested in is the extensions to Color.jl's colorant macro. This does all the normal things that the colorant string macro did before. But if it fails to find a color using the ones Color.jl has defined, then it goes and searches the big list. If it still fails to find a named color, it will give suggestions for the color you meant — this is the easiest way to search for a color name.

Image showing usage

Code for the above usage example

Further to this, every exported function has docstrings. So if in doubt try:

?named_color

Over-riding color index

The big dictionary of colors is defined by a const global ALL_COLORS, which has every color defined by this package. This is used as the default source of colors, by most functions, and by the colorant string macro. You can change this — to use a different, perhaps smaller, color list. Though it will not change already compiled uses of a colorant string macro. It also will not remove the webcolors that Color.jl defines.

julia> using NamedColors
julia> delete!.([ALL_COLORS], collect(keys(ALL_COLORS)))
julia> merge!(ALL_COLORS, load_xkcd())

Dict{String,ColorTypes.RGB24} with 949 entries:
  "chocolate"                  => RGB24{U8}(0.239,0.11,0.008)
  "light olive green"          => RGB24{U8}(0.643,0.745,0.361)
  "blue green"                 => RGB24{U8}(0.075,0.494,0.427)
  "copper"                     => RGB24{U8}(0.714,0.388,0.145)
  "pale"                       => RGB24{U8}(1.0,0.976,0.816)
  "clay brown"                 => RGB24{U8}(0.698,0.443,0.239)
  ...
  "turquoise green"            => RGB24{U8}(0.016,0.957,0.537)
  "jade"                       => RGB24{U8}(0.122,0.655,0.455)
  "dark sand"                  => RGB24{U8}(0.659,0.561,0.349)
  "cadet blue"                 => RGB24{U8}(0.306,0.455,0.588)
  "soft purple"                => RGB24{U8}(0.651,0.435,0.71)
  "kermit green"               => RGB24{U8}(0.361,0.698,0.0)

Sources

Futher Reading

Naming colors is actually something experts exist in. This package is one for pragmatic use, color names are more complex than many-one lookup tables can provide. A lot of these colors come from the dictionaries collected by

Some of the licenses on the data files are scary

The code is MIT licensed. The datafiles are each individually licensed.

One should be aware that you can not copyright a color. You can trademark it, but that is a different thing, and not a concern here. Similarly you can trademark its name, but that is still not a concern. Trademarking protects against someone using your branding, as a attempt to imitate you.

What is a concern is that you can copyright the lists as a whole. And most of the lists (except XKCD) have been copyrighted as such, but licensed for use. The lists I am distributing are being distributed according to those licenses. The scariest license is actually the CC-SSA from wikipedia for the Crayola color names.

But in it is all fine, the licenses are on the data, not on the code. The code is not derived from the data -- the package as a whole is a "Collection" incorporating several works. roughly speaking, CC-SSA imposes it's viral restrictions on Derivative Works, not on Collections (the license actually goes into some detail about this).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].