| 1 | package Acme::CPANModules::CreatingPaletteOfVisuallyDistinctColors; | ||
| 2 | |||
| 3 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 4 | 1 | our $DATE = '2021-01-20'; # DATE | |
| 5 | 1 | our $DIST = 'Acme-CPANModules-CreatingPaletteOfVisuallyDistinctColors'; # DIST | |
| 6 | 1 | our $VERSION = '0.001'; # VERSION | |
| 7 | |||
| 8 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 1 | ▶ | use Acme::CPANModulesUtil::Misc; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | my $text = <<'_'; | |
| 12 | Sometimes you want some colors that are distinct from one another, for example | ||
| 13 | when drawing line/bar graphs, but don't really care for the exact colors or | ||
| 14 | don't want to manually pick the colors. Below are some of the alternatives on | ||
| 15 | CPAN: | ||
| 16 | |||
| 17 | <pm:Chart::Colors> | ||
| 18 | |||
| 19 | <pm:Color::RGB::Util>'s `rand_rgb_colors()` function. | ||
| 20 | |||
| 21 | <pm:ColorTheme::Distinct::WhiteBG> and <pm:ColorTheme::Distinct::BlackBG>. | ||
| 22 | |||
| 23 | And below are some other alternatives: | ||
| 24 | |||
| 25 | TBD | ||
| 26 | |||
| 27 | _ | ||
| 28 | |||
| 29 | 1 | our $LIST = { | |
| 30 | summary => 'Creating a palette of visually distinct colors', | ||
| 31 | description => $text, | ||
| 32 | tags => ['task'], | ||
| 33 | }; | ||
| 34 | |||
| 35 | 1 | Acme::CPANModulesUtil::Misc::populate_entries_from_module_links_in_description; | |
| 36 | |||
| 37 | 1 | 1; | |
| 38 | # ABSTRACT: Creating a palette of visually distinct colors | ||
| 39 | |||
| 40 | __END__ | ||