diff --git a/ColorSchemes/LICENSE.md b/ColorSchemes/LICENSE.md deleted file mode 120000 index 7eabdb1..0000000 --- a/ColorSchemes/LICENSE.md +++ /dev/null @@ -1 +0,0 @@ -../LICENSE.md \ No newline at end of file diff --git a/ColorSchemes/LICENSE.md b/ColorSchemes/LICENSE.md new file mode 100644 index 0000000..d1b14ae --- /dev/null +++ b/ColorSchemes/LICENSE.md @@ -0,0 +1,99 @@ +The ColorSchemes package is licensed under the MIT "Expat" License: + +> Copyright (c) 2022: cormullion and contributors. +> +> Permission is hereby granted, free of charge, to any person obtaining +> a copy of this software and associated documentation files (the +> "Software"), to deal in the Software without restriction, including +> without limitation the rights to use, copy, modify, merge, publish, +> distribute, sublicense, and/or sell copies of the Software, and to +> permit persons to whom the Software is furnished to do so, subject to +> the following conditions: +> +> The above copyright notice and this permission notice shall be +> included in all copies or substantial portions of the Software. +> +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +## matplotlib license + +New matplotlib colormaps by Nathaniel J. Smith, Stefan van der Walt, +and (in the case of viridis) Eric Firing. + +This file and the colormaps in it are released under the CC0 license / +public domain dedication. We would appreciate credit if you use or +redistribute these colormaps, but do not impose any legal restrictions. + +To the extent possible under law, the persons who associated CC0 with +mpl-colormaps have waived all copyright and related or neighboring rights +to mpl-colormaps. + +## colorbrew license + +You should have received a copy of the CC0 legalcode along with this +work. If not, see . + +Apache-Style Software License for ColorBrewer software and ColorBrewer Color Schemes + +Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania State University. + +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied. See the License for the +specific language governing permissions and limitations under the License. + +## cmocean license + +The MIT License (MIT) + +Copyright (c) 2015 Kristen M. Thyng + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +see https://github.com/matplotlib/cmocean + +## turbo colormap + +see https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html +Copyright 2019 Google LLC. +SPDX-License-Identifier: Apache-2.0 + + +## flags + +See https://flagpedia.net/about + +The flags from which these color schemes were extracted are public domain. + +## feathers + +License is MIT +https://github.com/shandiya/feathers/tree/main diff --git a/ColorSchemes/README.md b/ColorSchemes/README.md deleted file mode 120000 index 32d46ee..0000000 --- a/ColorSchemes/README.md +++ /dev/null @@ -1 +0,0 @@ -../README.md \ No newline at end of file diff --git a/ColorSchemes/README.md b/ColorSchemes/README.md new file mode 100644 index 0000000..7352871 --- /dev/null +++ b/ColorSchemes/README.md @@ -0,0 +1,67 @@ +| **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 work + +Choose 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 ColorSchemes + +using ColorSchemes + +ColorSchemes.Purples_5 +# => a ColorScheme + +colorschemes[:Purples_5] +# => a ColorScheme + +ColorSchemes.Purples_5.colors +# => array of five RGB colors + +ColorSchemes.Purples_5.colors[3] +# => the third color in the colorscheme + +get(ColorSchemes.Purples_5, 0.5) +# => the midway point of the colorscheme + +colorschemes +# => Dict{Symbol, ColorScheme} with 983 entries + +findcolorscheme("purple") +# => display list of matching schemes + +ColorScheme([colorant"red", colorant"green", colorant"blue"]) +# new colorscheme from Colors.jl named colors + +get(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 diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index d1b14ae..0000000 --- a/LICENSE.md +++ /dev/null @@ -1,99 +0,0 @@ -The ColorSchemes package is licensed under the MIT "Expat" License: - -> Copyright (c) 2022: cormullion and contributors. -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> "Software"), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -> CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -> TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -## matplotlib license - -New matplotlib colormaps by Nathaniel J. Smith, Stefan van der Walt, -and (in the case of viridis) Eric Firing. - -This file and the colormaps in it are released under the CC0 license / -public domain dedication. We would appreciate credit if you use or -redistribute these colormaps, but do not impose any legal restrictions. - -To the extent possible under law, the persons who associated CC0 with -mpl-colormaps have waived all copyright and related or neighboring rights -to mpl-colormaps. - -## colorbrew license - -You should have received a copy of the CC0 legalcode along with this -work. If not, see . - -Apache-Style Software License for ColorBrewer software and ColorBrewer Color Schemes - -Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania State University. - -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR -CONDITIONS OF ANY KIND, either express or implied. See the License for the -specific language governing permissions and limitations under the License. - -## cmocean license - -The MIT License (MIT) - -Copyright (c) 2015 Kristen M. Thyng - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -see https://github.com/matplotlib/cmocean - -## turbo colormap - -see https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html -Copyright 2019 Google LLC. -SPDX-License-Identifier: Apache-2.0 - - -## flags - -See https://flagpedia.net/about - -The flags from which these color schemes were extracted are public domain. - -## feathers - -License is MIT -https://github.com/shandiya/feathers/tree/main diff --git a/LICENSE.md b/LICENSE.md new file mode 120000 index 0000000..d0a9f34 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1 @@ +ColorSchemes/LICENSE.md \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 7352871..0000000 --- a/README.md +++ /dev/null @@ -1,67 +0,0 @@ -| **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 work - -Choose 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 ColorSchemes - -using ColorSchemes - -ColorSchemes.Purples_5 -# => a ColorScheme - -colorschemes[:Purples_5] -# => a ColorScheme - -ColorSchemes.Purples_5.colors -# => array of five RGB colors - -ColorSchemes.Purples_5.colors[3] -# => the third color in the colorscheme - -get(ColorSchemes.Purples_5, 0.5) -# => the midway point of the colorscheme - -colorschemes -# => Dict{Symbol, ColorScheme} with 983 entries - -findcolorscheme("purple") -# => display list of matching schemes - -ColorScheme([colorant"red", colorant"green", colorant"blue"]) -# new colorscheme from Colors.jl named colors - -get(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 diff --git a/README.md b/README.md new file mode 120000 index 0000000..3a8552c --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +ColorSchemes/README.md \ No newline at end of file