Color::Brewer - Color schemes from Cynthis Brewer's ColorBrewer http://colorbrewer2.org/
my @color_scheme = Color::Brewer::named_color_scheme(name => 'RdBu', number_of_data_classes => 4);
my @color_schemes = Color::Brewer::color_schemes(data_nature => 'sequential', number_of_data_classes => 5);
Provides color schemes for maps designed by Cynthia Brewer. The color schemes are also suitable for data visualizations.
Choosing the best color scheme is easy. Just visit Cynthia Brewer's ColorBrewer http://colorbrewer2.org.
Also adding a citation in your map, chart, ... would be nice. Something like:
Colors from colorbrewer2.org, by Cynthia A. Brewer, Geography, Pennsylvania State University
This is suggested in http://www.personal.psu.edu/cab38/ColorBrewer/ColorBrewer_updates.html
Get a named color scheme
Name of the color scheme: RdBu
Number of data classes. Valid range goes from 3 to 12 depending on the scheme.
Array with the color scheme or an empty list if there is no such scheme
Get the color schemes available
Nature of the data: qualitative, sequential or diverging
Array with all the color schemes matching the options. Every color scheme is an array which elements are html rgb colors like: "rgb(252,141,89)"
Array can be empty if none of the color schemes match the options.
Color Brewer website and color schemes are copyrighted by Cynthia Brewer. With this module is bundled a json file with the color schemes.
This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer2.org/).
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
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.
Color::Scheme Perl implementation of Color Schemes 2
Color::Palette Set of named colors
Color::Library Named-color library
Graphics::Color Simple creation and manipulation of colors
Graphics::ColorObject Conversion between color spaces
Pablo Rodríguez González
This work is licensed under the Apache License, Version 2.0.
To install Color::Brewer, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.