File Coverage

blib/lib/Color/Library/Dictionary/Windows.pm
Criterion Covered Total %
statement 10 11 90.9
branch n/a
condition n/a
subroutine 4 5 80.0
pod n/a
total 14 16 87.5


line stmt bran cond sub pod time code
1             package Color::Library::Dictionary::Windows;
2              
3 2     2   1711 use strict;
  2         4  
  2         65  
4 2     2   11 use warnings;
  2         4  
  2         55  
5              
6 2     2   10 use base qw/Color::Library::Dictionary/;
  2         4  
  2         647  
7              
8             __PACKAGE__->_register_dictionary;
9              
10             package Color::Library::Dictionary::Windows;
11              
12             =pod
13              
14             =head1 NAME
15              
16             Color::Library::Dictionary::Windows - (Windows) Colors from the Windows system palette
17              
18             =head1 DESCRIPTION
19              
20             Static colors. Twenty colors found in the [Windows] system palette that cannot be set by an application. Sixteen of these colors are common across all color displays.
21              
22             L
23              
24             =head1 COLORS
25              
26             black black #000000
27              
28             blue blue #0000ff
29              
30             cyan cyan #00ffff
31              
32             darkblue darkblue #000080
33              
34             darkcyan darkcyan #008080
35              
36             darkgray darkgray #808080
37              
38             darkgreen darkgreen #008000
39              
40             darkmagenta darkmagenta #800080
41              
42             darkred darkred #800000
43              
44             darkyellow darkyellow #808000
45              
46             green green #00ff00
47              
48             lightgray lightgray #c0c0c0
49              
50             magenta magenta #ff00ff
51              
52             red red #ff0000
53              
54             white white #ffffff
55              
56             yellow yellow #ffff00
57              
58              
59             =cut
60              
61             sub _load_color_list() {
62             return [
63 1     1   39 ['windows:black','black','black',[0,0,0],'000000',0],
64             ['windows:blue','blue','blue',[0,0,255],'0000ff',255],
65             ['windows:cyan','cyan','cyan',[0,255,255],'00ffff',65535],
66             ['windows:darkblue','darkblue','darkblue',[0,0,128],'000080',128],
67             ['windows:darkcyan','darkcyan','darkcyan',[0,128,128],'008080',32896],
68             ['windows:darkgray','darkgray','darkgray',[128,128,128],'808080',8421504],
69             ['windows:darkgreen','darkgreen','darkgreen',[0,128,0],'008000',32768],
70             ['windows:darkmagenta','darkmagenta','darkmagenta',[128,0,128],'800080',8388736],
71             ['windows:darkred','darkred','darkred',[128,0,0],'800000',8388608],
72             ['windows:darkyellow','darkyellow','darkyellow',[128,128,0],'808000',8421376],
73             ['windows:green','green','green',[0,255,0],'00ff00',65280],
74             ['windows:lightgray','lightgray','lightgray',[192,192,192],'c0c0c0',12632256],
75             ['windows:magenta','magenta','magenta',[255,0,255],'ff00ff',16711935],
76             ['windows:red','red','red',[255,0,0],'ff0000',16711680],
77             ['windows:white','white','white',[255,255,255],'ffffff',16777215],
78             ['windows:yellow','yellow','yellow',[255,255,0],'ffff00',16776960]
79             ];
80             }
81              
82             sub _description {
83             return {
84 0     0     'subtitle' => 'Colors from the Windows system palette',
85             'title' => 'Windows',
86             'description' => 'Static colors. Twenty colors found in the [Windows] system palette that cannot be set by an application. Sixteen of these colors are common across all color displays.
87              
88             [http://msdn.microsoft.com/archive/en-us/dnargdi/html/msdn_palette.asp?frame=true]
89             '
90             }
91              
92             }
93              
94             1;