blib/lib/Acme/CPANModules/CreatingPaletteOfVisuallyDistinctColors.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
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__
↑ Summary