| 1 | package Color::Library::Dictionary::HTML; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | ▶ | use base qw/Color::Library::Dictionary/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | __PACKAGE__->_register_dictionary; | |
| 9 | |||
| 10 | package Color::Library::Dictionary::HTML; | ||
| 11 | |||
| 12 | =pod | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | Color::Library::Dictionary::HTML - (HTML) Colors from the HTML 4.0 specification | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | The HTML-4.0 specification defines 16 color names assigned to the full and half coordinate RGB primaries. | ||
| 21 | |||
| 22 | L<http://www.w3.org/TR/REC-html40/sgml/loosedtd.html#Color> | ||
| 23 | |||
| 24 | =head1 COLORS | ||
| 25 | |||
| 26 | aqua aqua #00ffff | ||
| 27 | |||
| 28 | black black #000000 | ||
| 29 | |||
| 30 | blue blue #0000ff | ||
| 31 | |||
| 32 | fuchsia fuchsia #ff00ff | ||
| 33 | |||
| 34 | fuscia fuscia #ff00ff | ||
| 35 | |||
| 36 | gray gray #808080 | ||
| 37 | |||
| 38 | green green #008000 | ||
| 39 | |||
| 40 | lime lime #00ff00 | ||
| 41 | |||
| 42 | maroon maroon #800000 | ||
| 43 | |||
| 44 | navy navy #000080 | ||
| 45 | |||
| 46 | olive olive #808000 | ||
| 47 | |||
| 48 | purple purple #800080 | ||
| 49 | |||
| 50 | red red #ff0000 | ||
| 51 | |||
| 52 | silver silver #c0c0c0 | ||
| 53 | |||
| 54 | teal teal #008080 | ||
| 55 | |||
| 56 | white white #ffffff | ||
| 57 | |||
| 58 | yellow yellow #ffff00 | ||
| 59 | |||
| 60 | |||
| 61 | =cut | ||
| 62 | |||
| 63 | 1 | ▶ | sub _load_color_list() { |
|
Subroutine
_load_color_list: called CC=1 SCAR=0.0
| |||
| 64 | return [ | ||
| 65 | 1 | ['html:aqua','aqua','aqua',[0,255,255],'00ffff',65535], | |
| 66 | ['html:black','black','black',[0,0,0],'000000',0], | ||
| 67 | ['html:blue','blue','blue',[0,0,255],'0000ff',255], | ||
| 68 | ['html:fuchsia','fuchsia','fuchsia',[255,0,255],'ff00ff',16711935], | ||
| 69 | ['html:fuscia','fuscia','fuscia',[255,0,255],'ff00ff',16711935], | ||
| 70 | ['html:gray','gray','gray',[128,128,128],'808080',8421504], | ||
| 71 | ['html:green','green','green',[0,128,0],'008000',32768], | ||
| 72 | ['html:lime','lime','lime',[0,255,0],'00ff00',65280], | ||
| 73 | ['html:maroon','maroon','maroon',[128,0,0],'800000',8388608], | ||
| 74 | ['html:navy','navy','navy',[0,0,128],'000080',128], | ||
| 75 | ['html:olive','olive','olive',[128,128,0],'808000',8421376], | ||
| 76 | ['html:purple','purple','purple',[128,0,128],'800080',8388736], | ||
| 77 | ['html:red','red','red',[255,0,0],'ff0000',16711680], | ||
| 78 | ['html:silver','silver','silver',[192,192,192],'c0c0c0',12632256], | ||
| 79 | ['html:teal','teal','teal',[0,128,128],'008080',32896], | ||
| 80 | ['html:white','white','white',[255,255,255],'ffffff',16777215], | ||
| 81 | ['html:yellow','yellow','yellow',[255,255,0],'ffff00',16776960] | ||
| 82 | ]; | ||
| 83 | } | ||
| 84 | |||
| 85 | 0 | ▶ | sub _description { |
|
Subroutine
_description: not called CC=1 SCAR=6.9
| |||
| 86 | return { | ||
| 87 | 0 | 'subtitle' => 'Colors from the HTML 4.0 specification', | |
| 88 | 'title' => 'HTML', | ||
| 89 | 'description' => 'The HTML-4.0 specification defines 16 color names assigned to the full and half coordinate RGB primaries. | ||
| 90 | |||
| 91 | [http://www.w3.org/TR/REC-html40/sgml/loosedtd.html#Color] | ||
| 92 | ' | ||
| 93 | } | ||
| 94 | |||
| 95 | } | ||
| 96 | |||
| 97 | 2 | 1; | |