line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
102701
|
use 5.006; # our, __PACKAGE__, etc |
|
2
|
|
|
|
|
6
|
|
2
|
2
|
|
|
2
|
|
9
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
37
|
|
3
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
125
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Color::Library::Dictionary::XKCD; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '1.000001'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: Colors determined by the XKCD Color Survey. |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY |
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
2
|
|
880
|
use Moo qw( extends ); |
|
2
|
|
|
|
|
242520
|
|
|
2
|
|
|
|
|
12
|
|
14
|
2
|
|
|
2
|
|
3058
|
use Color::Library 0.021; |
|
2
|
|
|
|
|
142239
|
|
|
2
|
|
|
|
|
75
|
|
15
|
2
|
|
|
2
|
|
1145
|
use File::ShareDir qw( dist_file ); |
|
2
|
|
|
|
|
10292
|
|
|
2
|
|
|
|
|
260
|
|
16
|
|
|
|
|
|
|
extends 'Color::Library::Dictionary'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
__PACKAGE__->_register_dictionary; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _load_color_list { |
21
|
1
|
|
|
1
|
|
671111
|
my $file = dist_file( 'Color-Library-Dictionary-XKCD', 'color_list.pl' ); |
22
|
1
|
|
|
|
|
20194
|
return [ do $file ]; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub _description { |
26
|
|
|
|
|
|
|
return { |
27
|
0
|
|
|
0
|
|
|
'subtitle' => 'Colors determined by the XKCD Color Survey', |
28
|
|
|
|
|
|
|
'title' => 'XKCD', |
29
|
|
|
|
|
|
|
'description' => <<"_EOF_", |
30
|
|
|
|
|
|
|
The web comic XKCD[http://xkcd.com] ran a rather wide-spread color survey |
31
|
|
|
|
|
|
|
to gauge the social perception of colors, at least, with regard to screen print spaces. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
The findings of this survey can be found here: |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
[http://blog.xkcd.com/2010/05/03/color-survey-results/] |
36
|
|
|
|
|
|
|
_EOF_ |
37
|
|
|
|
|
|
|
}; |
38
|
|
|
|
|
|
|
} |
39
|
2
|
|
|
2
|
|
12
|
no Moo; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
12
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |