TextMode/Palette/VGA.pm

filter: Statementstmt 100% 7 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 9 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« TextMode/Palette/Atari.pm ↑ Summary
1 package Image::TextMode::Palette::VGA;
2  
3 29 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 29 extends 'Image::TextMode::Palette';
6  
7 has '+colors' => (
8 default => sub {
9 15 ▶ [ [ 0x00, 0x00, 0x00 ],
Subroutine __ANON__: called CC=1 SCAR=0.0
10 [ 0x00, 0x00, 0xaa ],
11 [ 0x00, 0xaa, 0x00 ],
12 [ 0x00, 0xaa, 0xaa ],
13 [ 0xaa, 0x00, 0x00 ],
14 [ 0xaa, 0x00, 0xaa ],
15 [ 0xaa, 0x55, 0x00 ],
16 [ 0xaa, 0xaa, 0xaa ],
17 [ 0x55, 0x55, 0x55 ],
18 [ 0x55, 0x55, 0xff ],
19 [ 0x55, 0xff, 0x55 ],
20 [ 0x55, 0xff, 0xff ],
21 [ 0xff, 0x55, 0x55 ],
22 [ 0xff, 0x55, 0xff ],
23 [ 0xff, 0xff, 0x55 ],
24 [ 0xff, 0xff, 0xff ],
25 ];
26 }
27 29 );
28  
29 =head1 NAME
30  
31 Image::TextMode::Palette::VGA - 16-color VGA palette
32  
33 =head1 DESCRIPTION
34  
35 This is the default VGA palette.
36  
37 =head1 AUTHOR
38  
39 Brian Cassidy E<lt>bricas@cpan.orgE<gt>
40  
41 =head1 COPYRIGHT AND LICENSE
42  
43 Copyright 2008-2015 by Brian Cassidy
44  
45 This library is free software; you can redistribute it and/or modify
46 it under the same terms as Perl itself.
47  
48 =cut
49  
50 29 1;
« TextMode/Palette/Atari.pm ↑ Summary