Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JuliaGraphics/ColorSchemes.jl
colorschemes, colormaps, gradients, and palettes
https://github.com/JuliaGraphics/ColorSchemes.jl
color color-gradient color-palette color-scheme color-theme colormap colors colorschemes colour colour-palette colour-scheme julia
Last synced: 9 days ago
JSON representation
colorschemes, colormaps, gradients, and palettes
- Host: GitHub
- URL: https://github.com/JuliaGraphics/ColorSchemes.jl
- Owner: JuliaGraphics
- License: other
- Created: 2015-12-02T17:43:25.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T09:46:21.000Z (10 days ago)
- Last Synced: 2024-10-29T11:48:19.629Z (10 days ago)
- Topics: color, color-gradient, color-palette, color-scheme, color-theme, colormap, colors, colorschemes, colour, colour-palette, colour-scheme, julia
- Language: Julia
- Homepage: http://juliagraphics.github.io/ColorSchemes.jl/
- Size: 94.5 MB
- Stars: 188
- Watchers: 5
- Forks: 35
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-sciml - JuliaGraphics/ColorSchemes.jl: colorschemes, colormaps, gradients, and palettes
README
| **Documentation** | **Build Status** | **Code Coverage** |
|:--------------------------------------- |:-------------------------------------------|:-------------------------------:|
|[![][docs-current-img]][docs-current-url]| [![Build Status][ci-img]][ci-url] | [![][codecov-img]][codecov-url] |!["colorschemes social media preview"](docs/src/assets/figures/colorschemes-social-media-preview.png)
## ColorSchemes
This package provides a collection of colorschemes:
- scientifically devised colorschemes from ColorBrewer, CMOcean, ScientificColorMaps, ColorCet, and Seaborn
- popular old favourites such as _viridis_, _inferno_, and _magma_ from MATPlotLib
- old masters' colorschemes, such as _leonardo_, _vermeer_, and _picasso_
- variously themed colorschemes such as _sunset_, _coffee_, _neon_, and _pearl_Note that the schemes contained here are a mixture:
- some are high quality color maps with consistent perceptual contrast over their full range
- others are designed for general purpose and informal graphics workChoose colorschemes with care! Refer to Peter Kovesi's [PerceptualColourMaps](https://github.com/peterkovesi/PerceptualColourMaps.jl) package, or to Fabio Crameri's [Scientific Colour Maps](http://www.fabiocrameri.ch/colourmaps.php) for more information.
If you want to make more advanced ColorSchemes, use linear-segment dictionaries or indexed lists, and use functions to generate color values, see the `make_colorscheme()` function in the [ColorSchemeTools.jl](https://github.com/JuliaGraphics/ColorSchemeTools.jl) package.
## Basic usage
```julia
] add ColorSchemesusing ColorSchemes
ColorSchemes.Purples_5
# => a ColorSchemecolorschemes[:Purples_5]
# => a ColorSchemeColorSchemes.Purples_5.colors
# => array of five RGB colorsColorSchemes.Purples_5.colors[3]
# => the third color in the colorschemeget(ColorSchemes.Purples_5, 0.5)
# => the midway point of the colorschemecolorschemes
# => Dict{Symbol, ColorScheme} with 983 entriesfindcolorscheme("purple")
# => display list of matching schemesColorScheme([colorant"red", colorant"green", colorant"blue"])
# new colorscheme from Colors.jl named colorsget(ColorSchemes.darkrainbow, range(0.0, 1.0, length=20)) |> ColorScheme
# new colorscheme by resampling existing
```[docs-current-img]: https://img.shields.io/badge/docs-current-blue.svg
[docs-current-url]: https://JuliaGraphics.github.io/ColorSchemes.jl/dev/[codecov-img]: https://codecov.io/gh/JuliaGraphics/ColorSchemes.jl/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/JuliaGraphics/ColorSchemes.jl[ci-img]: https://github.com/JuliaGraphics/ColorSchemes.jl/workflows/CI/badge.svg
[ci-url]: https://github.com/JuliaGraphics/ColorSchemes.jl/actions?query=workflow%3ACI