| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Acme::CPANModules::CreatingPaletteOfVisuallyDistinctColors; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
398183
|
use strict; |
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
47
|
|
|
4
|
1
|
|
|
1
|
|
731
|
use Acme::CPANModulesUtil::Misc; |
|
|
1
|
|
|
|
|
704
|
|
|
|
1
|
|
|
|
|
175
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
|
7
|
|
|
|
|
|
|
our $DATE = '2023-08-06'; # DATE |
|
8
|
|
|
|
|
|
|
our $DIST = 'Acme-CPANModules-CreatingPaletteOfVisuallyDistinctColors'; # DIST |
|
9
|
|
|
|
|
|
|
our $VERSION = '0.002'; # VERSION |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
's `rand_rgb_colors()` function. |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
and . |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
And below are some other alternatives: |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
TBD |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
_ |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
our $LIST = { |
|
30
|
|
|
|
|
|
|
summary => 'List of modules to create a palette of visually distinct colors', |
|
31
|
|
|
|
|
|
|
description => $text, |
|
32
|
|
|
|
|
|
|
tags => ['task'], |
|
33
|
|
|
|
|
|
|
}; |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Acme::CPANModulesUtil::Misc::populate_entries_from_module_links_in_description; |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
|
38
|
|
|
|
|
|
|
# ABSTRACT: List of modules to create a palette of visually distinct colors |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |