NAME Term::Colormap::Brewer

VERSION

Version 0.17

SYNOPSIS

Provide the Brewer colormaps.

use Term::Colormap qw( colormap colorbar print_colored );
use Term::Colormap::Brewer;

my $accent = colormap('accent-3');

colorbar($accent);

print_colored( $accent->[3], "some color" )';

CITATION

Colors from www.ColorBrewer.org by Cynthia A. Brewer, Geography, Pennsylvania State University.

AVAILABLE COLORMAPS

accent-3     - Qualitative, Accent, 3 colors
accent-4     - Qualitative, Accent, 4 colors
accent-5     - Qualitative, Accent, 5 colors
accent-6     - Qualitative, Accent, 6 colors
accent-7     - Qualitative, Accent, 7 colors
accent-8     - Qualitative, Accent, 8 colors
blues-3      - Sequential, Blues, 3 colors
blues-4      - Sequential, Blues, 4 colors
blues-5      - Sequential, Blues, 5 colors
blues-6      - Sequential, Blues, 6 colors
blues-7      - Sequential, Blues, 7 colors
blues-8      - Sequential, Blues, 8 colors
blues-9      - Sequential, Blues, 9 colors
brbg-3       - Diverging, BrBG, 3 colors
brbg-4       - Diverging, BrBG, 4 colors
brbg-5       - Diverging, BrBG, 5 colors
brbg-6       - Diverging, BrBG, 6 colors
brbg-7       - Diverging, BrBG, 7 colors
brbg-8       - Diverging, BrBG, 8 colors
brbg-9       - Diverging, BrBG, 9 colors
brbg-10      - Diverging, BrBG, 10 colors
brbg-11      - Diverging, BrBG, 11 colors
bugn-3       - Sequential, BuGn, 3 colors
bugn-4       - Sequential, BuGn, 4 colors
bugn-5       - Sequential, BuGn, 5 colors
bugn-6       - Sequential, BuGn, 6 colors
bugn-7       - Sequential, BuGn, 7 colors
bugn-8       - Sequential, BuGn, 8 colors
bugn-9       - Sequential, BuGn, 9 colors
bupu-3       - Sequential, BuPu, 3 colors
bupu-4       - Sequential, BuPu, 4 colors
bupu-5       - Sequential, BuPu, 5 colors
bupu-6       - Sequential, BuPu, 6 colors
bupu-7       - Sequential, BuPu, 7 colors
bupu-8       - Sequential, BuPu, 8 colors
bupu-9       - Sequential, BuPu, 9 colors
dark2-3      - Qualitative, Dark2, 3 colors
dark2-4      - Qualitative, Dark2, 4 colors
dark2-5      - Qualitative, Dark2, 5 colors
dark2-6      - Qualitative, Dark2, 6 colors
dark2-7      - Qualitative, Dark2, 7 colors
dark2-8      - Qualitative, Dark2, 8 colors
gnbu-3       - Sequential, GnBu, 3 colors
gnbu-4       - Sequential, GnBu, 4 colors
gnbu-5       - Sequential, GnBu, 5 colors
gnbu-6       - Sequential, GnBu, 6 colors
gnbu-7       - Sequential, GnBu, 7 colors
gnbu-8       - Sequential, GnBu, 8 colors
gnbu-9       - Sequential, GnBu, 9 colors
greens-3     - Sequential, Greens, 3 colors
greens-4     - Sequential, Greens, 4 colors
greens-5     - Sequential, Greens, 5 colors
greens-6     - Sequential, Greens, 6 colors
greens-7     - Sequential, Greens, 7 colors
greens-8     - Sequential, Greens, 8 colors
greens-9     - Sequential, Greens, 9 colors
greys-3      - Sequential, Greys, 3 colors
greys-4      - Sequential, Greys, 4 colors
greys-5      - Sequential, Greys, 5 colors
greys-6      - Sequential, Greys, 6 colors
greys-7      - Sequential, Greys, 7 colors
greys-8      - Sequential, Greys, 8 colors
greys-9      - Sequential, Greys, 9 colors
oranges-3    - Sequential, Oranges, 3 colors
oranges-4    - Sequential, Oranges, 4 colors
oranges-5    - Sequential, Oranges, 5 colors
oranges-6    - Sequential, Oranges, 6 colors
oranges-7    - Sequential, Oranges, 7 colors
oranges-8    - Sequential, Oranges, 8 colors
oranges-9    - Sequential, Oranges, 9 colors
orrd-3       - Sequential, OrRd, 3 colors
orrd-4       - Sequential, OrRd, 4 colors
orrd-5       - Sequential, OrRd, 5 colors
orrd-6       - Sequential, OrRd, 6 colors
orrd-7       - Sequential, OrRd, 7 colors
orrd-8       - Sequential, OrRd, 8 colors
orrd-9       - Sequential, OrRd, 9 colors
paired-3     - Qualitative, Paired, 3 colors
paired-4     - Qualitative, Paired, 4 colors
paired-5     - Qualitative, Paired, 5 colors
paired-6     - Qualitative, Paired, 6 colors
paired-7     - Qualitative, Paired, 7 colors
paired-8     - Qualitative, Paired, 8 colors
paired-9     - Qualitative, Paired, 9 colors
paired-10    - Qualitative, Paired, 10 colors
paired-11    - Qualitative, Paired, 11 colors
paired-12    - Qualitative, Paired, 12 colors
pastel1-3    - Qualitative, Pastel1, 3 colors
pastel1-4    - Qualitative, Pastel1, 4 colors
pastel1-5    - Qualitative, Pastel1, 5 colors
pastel1-6    - Qualitative, Pastel1, 6 colors
pastel1-7    - Qualitative, Pastel1, 7 colors
pastel1-8    - Qualitative, Pastel1, 8 colors
pastel1-9    - Qualitative, Pastel1, 9 colors
pastel2-3    - Qualitative, Pastel2, 3 colors
pastel2-4    - Qualitative, Pastel2, 4 colors
pastel2-5    - Qualitative, Pastel2, 5 colors
pastel2-6    - Qualitative, Pastel2, 6 colors
pastel2-7    - Qualitative, Pastel2, 7 colors
pastel2-8    - Qualitative, Pastel2, 8 colors
piyg-3       - Diverging, PiYG, 3 colors
piyg-4       - Diverging, PiYG, 4 colors
piyg-5       - Diverging, PiYG, 5 colors
piyg-6       - Diverging, PiYG, 6 colors
piyg-7       - Diverging, PiYG, 7 colors
piyg-8       - Diverging, PiYG, 8 colors
piyg-9       - Diverging, PiYG, 9 colors
piyg-10      - Diverging, PiYG, 10 colors
piyg-11      - Diverging, PiYG, 11 colors
prgn-3       - Diverging, PRGn, 3 colors
prgn-4       - Diverging, PRGn, 4 colors
prgn-5       - Diverging, PRGn, 5 colors
prgn-6       - Diverging, PRGn, 6 colors
prgn-7       - Diverging, PRGn, 7 colors
prgn-8       - Diverging, PRGn, 8 colors
prgn-9       - Diverging, PRGn, 9 colors
prgn-10      - Diverging, PRGn, 10 colors
prgn-11      - Diverging, PRGn, 11 colors
pubu-3       - Sequential, PuBu, 3 colors
pubu-4       - Sequential, PuBu, 4 colors
pubu-5       - Sequential, PuBu, 5 colors
pubu-6       - Sequential, PuBu, 6 colors
pubu-7       - Sequential, PuBu, 7 colors
pubu-8       - Sequential, PuBu, 8 colors
pubu-9       - Sequential, PuBu, 9 colors
pubugn-3     - Sequential, PuBuGn, 3 colors
pubugn-4     - Sequential, PuBuGn, 4 colors
pubugn-5     - Sequential, PuBuGn, 5 colors
pubugn-6     - Sequential, PuBuGn, 6 colors
pubugn-7     - Sequential, PuBuGn, 7 colors
pubugn-8     - Sequential, PuBuGn, 8 colors
pubugn-9     - Sequential, PuBuGn, 9 colors
puor-3       - Diverging, PuOr, 3 colors
puor-4       - Diverging, PuOr, 4 colors
puor-5       - Diverging, PuOr, 5 colors
puor-6       - Diverging, PuOr, 6 colors
puor-7       - Diverging, PuOr, 7 colors
puor-8       - Diverging, PuOr, 8 colors
puor-9       - Diverging, PuOr, 9 colors
puor-10      - Diverging, PuOr, 10 colors
puor-11      - Diverging, PuOr, 11 colors
purd-3       - Sequential, PuRd, 3 colors
purd-4       - Sequential, PuRd, 4 colors
purd-5       - Sequential, PuRd, 5 colors
purd-6       - Sequential, PuRd, 6 colors
purd-7       - Sequential, PuRd, 7 colors
purd-8       - Sequential, PuRd, 8 colors
purd-9       - Sequential, PuRd, 9 colors
purples-3    - Sequential, Purples, 3 colors
purples-4    - Sequential, Purples, 4 colors
purples-5    - Sequential, Purples, 5 colors
purples-6    - Sequential, Purples, 6 colors
purples-7    - Sequential, Purples, 7 colors
purples-8    - Sequential, Purples, 8 colors
purples-9    - Sequential, Purples, 9 colors
rdbu-3       - Diverging, RdBu, 3 colors
rdbu-4       - Diverging, RdBu, 4 colors
rdbu-5       - Diverging, RdBu, 5 colors
rdbu-6       - Diverging, RdBu, 6 colors
rdbu-7       - Diverging, RdBu, 7 colors
rdbu-8       - Diverging, RdBu, 8 colors
rdbu-9       - Diverging, RdBu, 9 colors
rdbu-10      - Diverging, RdBu, 10 colors
rdbu-11      - Diverging, RdBu, 11 colors
rdgy-3       - Diverging, RdGy, 3 colors
rdgy-4       - Diverging, RdGy, 4 colors
rdgy-5       - Diverging, RdGy, 5 colors
rdgy-6       - Diverging, RdGy, 6 colors
rdgy-7       - Diverging, RdGy, 7 colors
rdgy-8       - Diverging, RdGy, 8 colors
rdgy-9       - Diverging, RdGy, 9 colors
rdgy-10      - Diverging, RdGy, 10 colors
rdgy-11      - Diverging, RdGy, 11 colors
rdpu-3       - Sequential, RdPu, 3 colors
rdpu-4       - Sequential, RdPu, 4 colors
rdpu-5       - Sequential, RdPu, 5 colors
rdpu-6       - Sequential, RdPu, 6 colors
rdpu-7       - Sequential, RdPu, 7 colors
rdpu-8       - Sequential, RdPu, 8 colors
rdpu-9       - Sequential, RdPu, 9 colors
reds-3       - Sequential, Reds, 3 colors
reds-4       - Sequential, Reds, 4 colors
reds-5       - Sequential, Reds, 5 colors
reds-6       - Sequential, Reds, 6 colors
reds-7       - Sequential, Reds, 7 colors
reds-8       - Sequential, Reds, 8 colors
reds-9       - Sequential, Reds, 9 colors
rdylbu-3     - Diverging, RdYlBu, 3 colors
rdylbu-4     - Diverging, RdYlBu, 4 colors
rdylbu-5     - Diverging, RdYlBu, 5 colors
rdylbu-6     - Diverging, RdYlBu, 6 colors
rdylbu-7     - Diverging, RdYlBu, 7 colors
rdylbu-8     - Diverging, RdYlBu, 8 colors
rdylbu-9     - Diverging, RdYlBu, 9 colors
rdylbu-10    - Diverging, RdYlBu, 10 colors
rdylbu-11    - Diverging, RdYlBu, 11 colors
rdylgn-3     - Diverging, RdYlGn, 3 colors
rdylgn-4     - Diverging, RdYlGn, 4 colors
rdylgn-5     - Diverging, RdYlGn, 5 colors
rdylgn-6     - Diverging, RdYlGn, 6 colors
rdylgn-7     - Diverging, RdYlGn, 7 colors
rdylgn-8     - Diverging, RdYlGn, 8 colors
rdylgn-9     - Diverging, RdYlGn, 9 colors
rdylgn-10    - Diverging, RdYlGn, 10 colors
rdylgn-11    - Diverging, RdYlGn, 11 colors
set1-3       - Qualitative, Set1, 3 colors
set1-4       - Qualitative, Set1, 4 colors
set1-5       - Qualitative, Set1, 5 colors
set1-6       - Qualitative, Set1, 6 colors
set1-7       - Qualitative, Set1, 7 colors
set1-8       - Qualitative, Set1, 8 colors
set1-9       - Qualitative, Set1, 9 colors
set2-3       - Qualitative, Set2, 3 colors
set2-4       - Qualitative, Set2, 4 colors
set2-5       - Qualitative, Set2, 5 colors
set2-6       - Qualitative, Set2, 6 colors
set2-7       - Qualitative, Set2, 7 colors
set2-8       - Qualitative, Set2, 8 colors
set3-3       - Qualitative, Set3, 3 colors
set3-4       - Qualitative, Set3, 4 colors
set3-5       - Qualitative, Set3, 5 colors
set3-6       - Qualitative, Set3, 6 colors
set3-7       - Qualitative, Set3, 7 colors
set3-8       - Qualitative, Set3, 8 colors
set3-9       - Qualitative, Set3, 9 colors
set3-10      - Qualitative, Set3, 10 colors
set3-11      - Qualitative, Set3, 11 colors
set3-12      - Qualitative, Set3, 12 colors
spectral-3   - Diverging, Spectral, 3 colors
spectral-4   - Diverging, Spectral, 4 colors
spectral-5   - Diverging, Spectral, 5 colors
spectral-6   - Diverging, Spectral, 6 colors
spectral-7   - Diverging, Spectral, 7 colors
spectral-8   - Diverging, Spectral, 8 colors
spectral-9   - Diverging, Spectral, 9 colors
spectral-10  - Diverging, Spectral, 10 colors
spectral-11  - Diverging, Spectral, 11 colors
ylgn-3       - Sequential, YlGn, 3 colors
ylgn-4       - Sequential, YlGn, 4 colors
ylgn-5       - Sequential, YlGn, 5 colors
ylgn-6       - Sequential, YlGn, 6 colors
ylgn-7       - Sequential, YlGn, 7 colors
ylgn-8       - Sequential, YlGn, 8 colors
ylgn-9       - Sequential, YlGn, 9 colors
ylgnbu-3     - Sequential, YlGnBu, 3 colors
ylgnbu-4     - Sequential, YlGnBu, 4 colors
ylgnbu-5     - Sequential, YlGnBu, 5 colors
ylgnbu-6     - Sequential, YlGnBu, 6 colors
ylgnbu-7     - Sequential, YlGnBu, 7 colors
ylgnbu-8     - Sequential, YlGnBu, 8 colors
ylgnbu-9     - Sequential, YlGnBu, 9 colors
ylorbr-3     - Sequential, YlOrBr, 3 colors
ylorbr-4     - Sequential, YlOrBr, 4 colors
ylorbr-5     - Sequential, YlOrBr, 5 colors
ylorbr-6     - Sequential, YlOrBr, 6 colors
ylorbr-7     - Sequential, YlOrBr, 7 colors
ylorbr-8     - Sequential, YlOrBr, 8 colors
ylorbr-9     - Sequential, YlOrBr, 9 colors
ylorrd-3     - Sequential, YlOrRd, 3 colors
ylorrd-4     - Sequential, YlOrRd, 4 colors
ylorrd-5     - Sequential, YlOrRd, 5 colors
ylorrd-6     - Sequential, YlOrRd, 6 colors
ylorrd-7     - Sequential, YlOrRd, 7 colors
ylorrd-8     - Sequential, YlOrRd, 8 colors
ylorrd-9     - Sequential, YlOrRd, 9 colors

AUTHOR

What do they look like?

Run the show_brewer_colormap script to display them in your terminal.

Felix Tubiana, <felixtubiana at gmail.com>

BUGS

Please report any bugs or feature requests to bug-term-colormap at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Term-Colormap. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Term::Colormap::Brewer

You can also look for information at:

ACKNOWLEDGEMENTS

Inspired by Term::ANSIColor

LICENSE AND COPYRIGHT

Copyright 2017 Felix Tubiana.

This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:

http://www.perlfoundation.org/artistic_license_2_0

Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license.

If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license.

This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder.

This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed.

Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.