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