line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Image::TextMode::Palette; |
2
|
|
|
|
|
|
|
|
3
|
30
|
|
|
30
|
|
12708
|
use Moo; |
|
30
|
|
|
|
|
12327
|
|
|
30
|
|
|
|
|
134
|
|
4
|
30
|
|
|
30
|
|
14581
|
use Types::Standard qw( ArrayRef ); |
|
30
|
|
|
|
|
598502
|
|
|
30
|
|
|
|
|
324
|
|
5
|
|
|
|
|
|
|
has 'colors' => ( is => 'rw', isa => ArrayRef, default => sub { [] } ); |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Image::TextMode::Palette - A base class for text mode palettes |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 DESCRIPTION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Represents a palette in text mode. That is, an array of RGB triples. |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 ACCESSORS |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=over 4 |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=item * colors - An array of RGB triples |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=back |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 METHODS |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head2 new( %args ) |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Creates a new palette object. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 AUTHOR |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Brian Cassidy Ebricas@cpan.orgE |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Copyright 2008-2014 by Brian Cassidy |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
38
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |