TextMode/Palette.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« TextMode/Format/XBin.pm ↑ Summary TextMode/Palette/ANSI.pm »
1 package Image::TextMode::Palette;
2  
3 30 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 30 ▶use Types::Standard qw( ArrayRef );
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶has 'colors' => ( is => 'rw', isa => ArrayRef, default => sub { [] } );
Subroutine __ANON__: called CC=1 SCAR=0.0
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 E<lt>bricas@cpan.orgE<gt>
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 30 1;
« TextMode/Format/XBin.pm ↑ Summary TextMode/Palette/ANSI.pm »