color_namer_ruby 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +143 -0
- data/Rakefile +8 -0
- data/lib/color_namer_ruby/basic.rb +36 -0
- data/lib/color_namer_ruby/distance.rb +44 -0
- data/lib/color_namer_ruby/html.rb +163 -0
- data/lib/color_namer_ruby/namer.rb +44 -0
- data/lib/color_namer_ruby/ntc.rb +1580 -0
- data/lib/color_namer_ruby/pantone.rb +134 -0
- data/lib/color_namer_ruby/roygbiv.rb +21 -0
- data/lib/color_namer_ruby/version.rb +5 -0
- data/lib/color_namer_ruby/x11.rb +159 -0
- data/lib/color_namer_ruby.rb +18 -0
- metadata +84 -0
@@ -0,0 +1,134 @@
|
|
1
|
+
module ColorNamerRuby
|
2
|
+
class Pantone
|
3
|
+
def self.get_name_from_hex(hex)
|
4
|
+
self.colours.select { |swatch| swatch[:hex] == hex.upcase }.first&.dig(:name)
|
5
|
+
end
|
6
|
+
|
7
|
+
private
|
8
|
+
|
9
|
+
def self.colours
|
10
|
+
[
|
11
|
+
{ name: 'Mahogany', hex: '#CD4A4A' },
|
12
|
+
{ name: 'Fuzzy Wuzzy Brown', hex: '#CC6666' },
|
13
|
+
{ name: 'Chestnut', hex: '#BC5D58' },
|
14
|
+
{ name: 'Red Orange', hex: '#FF5349' },
|
15
|
+
{ name: 'Sunset Orange', hex: '#FD5E53' },
|
16
|
+
{ name: 'Bittersweet', hex: '#FD7C6E' },
|
17
|
+
{ name: 'Melon', hex: '#FDBCB4' },
|
18
|
+
{ name: 'Outrageous Orange', hex: '#FF6E4A' },
|
19
|
+
{ name: 'Vivid Tangerine', hex: '#FFA089' },
|
20
|
+
{ name: 'Burnt Sienna', hex: '#EA7E5D' },
|
21
|
+
{ name: 'Brown', hex: '#B4674D' },
|
22
|
+
{ name: 'Sepia', hex: '#A5694F' },
|
23
|
+
{ name: 'Orange', hex: '#FF7538' },
|
24
|
+
{ name: 'Burnt Orange', hex: '#FF7F49' },
|
25
|
+
{ name: 'Copper', hex: '#DD9475' },
|
26
|
+
{ name: 'Mango Tango', hex: '#FF8243' },
|
27
|
+
{ name: 'Atomic Tangerine', hex: '#FFA474' },
|
28
|
+
{ name: 'Beaver', hex: '#9F8170' },
|
29
|
+
{ name: 'Antique Brass', hex: '#CD9575' },
|
30
|
+
{ name: 'Desert Sand', hex: '#EFCDB8' },
|
31
|
+
{ name: 'Raw Sienna', hex: '#D68A59' },
|
32
|
+
{ name: 'Tumbleweed', hex: '#DEAA88' },
|
33
|
+
{ name: 'Tan', hex: '#FAA76C' },
|
34
|
+
{ name: 'Peach', hex: '#FFCFAB' },
|
35
|
+
{ name: 'Macaroni and Cheese', hex: '#FFBD88' },
|
36
|
+
{ name: 'Apricot', hex: '#FDD9B5' },
|
37
|
+
{ name: 'Neon Carrot', hex: '#FFA343' },
|
38
|
+
{ name: 'Almond', hex: '#EFDBC5' },
|
39
|
+
{ name: 'Yellow Orange', hex: '#FFB653' },
|
40
|
+
{ name: 'Gold', hex: '#E7C697' },
|
41
|
+
{ name: 'Shadow', hex: '#8A795D' },
|
42
|
+
{ name: 'Banana Mania', hex: '#FAE7B5' },
|
43
|
+
{ name: 'Sunglow', hex: '#FFCF48' },
|
44
|
+
{ name: 'Goldenrod', hex: '#FCD975' },
|
45
|
+
{ name: 'Dandelion', hex: '#FDDB6D' },
|
46
|
+
{ name: 'Yellow', hex: '#FCE883' },
|
47
|
+
{ name: 'Green Yellow', hex: '#F0E891' },
|
48
|
+
{ name: 'Spring Green', hex: '#ECEABE' },
|
49
|
+
{ name: 'Olive Green', hex: '#BAB86C' },
|
50
|
+
{ name: 'Laser Lemon', hex: '#FDFC74' },
|
51
|
+
{ name: 'Unmellow Yellow', hex: '#FDFC74' },
|
52
|
+
{ name: 'Canary', hex: '#FFFF99' },
|
53
|
+
{ name: 'Yellow Green', hex: '#C5E384' },
|
54
|
+
{ name: 'Inch Worm', hex: '#B2EC5D' },
|
55
|
+
{ name: 'Asparagus', hex: '#87A96B' },
|
56
|
+
{ name: 'Granny Smith Apple', hex: '#A8E4A0' },
|
57
|
+
{ name: 'Electric Lime', hex: '#1DF914' },
|
58
|
+
{ name: 'Screamin Green', hex: '#76FF7A' },
|
59
|
+
{ name: 'Fern', hex: '#71BC78' },
|
60
|
+
{ name: 'Forest Green', hex: '#6DAE81' },
|
61
|
+
{ name: 'Sea Green', hex: '#9FE2BF' },
|
62
|
+
{ name: 'Green', hex: '#1CAC78' },
|
63
|
+
{ name: 'Mountain Meadow', hex: '#30BA8F' },
|
64
|
+
{ name: 'Shamrock', hex: '#45CEA2' },
|
65
|
+
{ name: 'Jungle Green', hex: '#3BB08F' },
|
66
|
+
{ name: 'Caribbean Green', hex: '#1CD3A2' },
|
67
|
+
{ name: 'Tropical Rain Forest', hex: '#17806D' },
|
68
|
+
{ name: 'Pine Green', hex: '#158078' },
|
69
|
+
{ name: 'Robin Egg Blue', hex: '#1FCECB' },
|
70
|
+
{ name: 'Aquamarine', hex: '#78DBE2' },
|
71
|
+
{ name: 'Turquoise Blue', hex: '#77DDE7' },
|
72
|
+
{ name: 'Sky Blue', hex: '#80DAEB' },
|
73
|
+
{ name: 'Outer Space', hex: '#414A4C' },
|
74
|
+
{ name: 'Blue Green', hex: '#199EBD' },
|
75
|
+
{ name: 'Pacific Blue', hex: '#1CA9C9' },
|
76
|
+
{ name: 'Cerulean', hex: '#1DACD6' },
|
77
|
+
{ name: 'Cornflower', hex: '#9ACEEB' },
|
78
|
+
{ name: 'Midnight Blue', hex: '#1A4876' },
|
79
|
+
{ name: 'Navy Blue', hex: '#1974D2' },
|
80
|
+
{ name: 'Denim', hex: '#2B6CC4' },
|
81
|
+
{ name: 'Blue', hex: '#1F75FE' },
|
82
|
+
{ name: 'Periwinkle', hex: '#C5D0E6' },
|
83
|
+
{ name: 'Cadet Blue', hex: '#B0B7C6' },
|
84
|
+
{ name: 'Indigo', hex: '#5D76CB' },
|
85
|
+
{ name: 'Wild Blue Yonder', hex: '#A2ADD0' },
|
86
|
+
{ name: 'Manatee', hex: '#979AAA' },
|
87
|
+
{ name: 'Blue Bell', hex: '#ADADD6' },
|
88
|
+
{ name: 'Blue Violet', hex: '#7366BD' },
|
89
|
+
{ name: 'Purple Heart', hex: '#7442C8' },
|
90
|
+
{ name: 'Royal Purple', hex: '#7851A9' },
|
91
|
+
{ name: 'Purple Mountains’ Majesty', hex: '#9D81BA' },
|
92
|
+
{ name: 'Violet (Purple)', hex: '#926EAE' },
|
93
|
+
{ name: 'Wisteria', hex: '#CDA4DE' },
|
94
|
+
{ name: 'Vivid Violet', hex: '#8F509D' },
|
95
|
+
{ name: 'Fuchsia', hex: '#C364C5' },
|
96
|
+
{ name: 'Shocking Pink', hex: '#FB7EFD' },
|
97
|
+
{ name: 'Pink Flamingo', hex: '#FC74FD' },
|
98
|
+
{ name: 'Plum', hex: '#8E4585' },
|
99
|
+
{ name: 'Hot Magenta', hex: '#FF1DCE' },
|
100
|
+
{ name: 'Purple Pizzazz', hex: '#FF1DCE' },
|
101
|
+
{ name: 'Razzle Dazzle Rose', hex: '#FF48D0' },
|
102
|
+
{ name: 'Orchid', hex: '#E6A8D7' },
|
103
|
+
{ name: 'Red Violet', hex: '#C0448F' },
|
104
|
+
{ name: 'Eggplant', hex: '#6E5160' },
|
105
|
+
{ name: 'Cerise', hex: '#DD4492' },
|
106
|
+
{ name: 'Wild Strawberry', hex: '#FF43A4' },
|
107
|
+
{ name: 'Magenta', hex: '#F664AF' },
|
108
|
+
{ name: 'Lavender', hex: '#FCB4D5' },
|
109
|
+
{ name: 'Cotton Candy', hex: '#FFBCD9' },
|
110
|
+
{ name: 'Violet Red', hex: '#F75394' },
|
111
|
+
{ name: 'Carnation Pink', hex: '#FFAACC' },
|
112
|
+
{ name: 'Razzmatazz', hex: '#E3256B' },
|
113
|
+
{ name: 'Piggy Pink', hex: '#FDD7E4' },
|
114
|
+
{ name: 'Jazzberry Jam', hex: '#CA3767' },
|
115
|
+
{ name: 'Blush', hex: '#DE5D83' },
|
116
|
+
{ name: 'Tickle Me Pink', hex: '#FC89AC' },
|
117
|
+
{ name: 'Pink Sherbet', hex: '#F780A1' },
|
118
|
+
{ name: 'Maroon', hex: '#C8385A' },
|
119
|
+
{ name: 'Red', hex: '#EE204D' },
|
120
|
+
{ name: 'Radical Red', hex: '#FF496C' },
|
121
|
+
{ name: 'Mauvelous', hex: '#EF98AA' },
|
122
|
+
{ name: 'Wild Watermelon', hex: '#FC6C85' },
|
123
|
+
{ name: 'Scarlet', hex: '#FC2847' },
|
124
|
+
{ name: 'Salmon', hex: '#FF9BAA' },
|
125
|
+
{ name: 'Brick Red', hex: '#CB4154' },
|
126
|
+
{ name: 'White', hex: '#EDEDED' },
|
127
|
+
{ name: 'Timberwolf', hex: '#DBD7D2' },
|
128
|
+
{ name: 'Silver', hex: '#CDC5C2' },
|
129
|
+
{ name: 'Gray', hex: '#95918C' },
|
130
|
+
{ name: 'Black', hex: '#232323' },
|
131
|
+
]
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module ColorNamerRuby
|
2
|
+
class Roygbiv
|
3
|
+
def self.get_name_from_hex(hex)
|
4
|
+
self.colours.select { |swatch| swatch[:hex] == hex.upcase }.first&.dig(:name)
|
5
|
+
end
|
6
|
+
|
7
|
+
private
|
8
|
+
|
9
|
+
def self.colours
|
10
|
+
[
|
11
|
+
{ name: 'red', hex: '#FF0000' },
|
12
|
+
{ name: 'orange', hex: '#FFA500' },
|
13
|
+
{ name: 'yellow', hex: '#FFFF00' },
|
14
|
+
{ name: 'green', hex: '#008000' },
|
15
|
+
{ name: 'blue', hex: '#0000FF' },
|
16
|
+
{ name: 'indigo', hex: '#4B0082' },
|
17
|
+
{ name: 'violet', hex: '#EE82EE' },
|
18
|
+
]
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,159 @@
|
|
1
|
+
module ColorNamerRuby
|
2
|
+
class X11
|
3
|
+
def self.get_name_from_hex(hex)
|
4
|
+
self.colours.select { |swatch| swatch[:hex] == hex.downcase }.first&.dig(:name)
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.colours
|
8
|
+
[
|
9
|
+
{ name: 'indigo', hex: '#4b0082' },
|
10
|
+
{ name: 'gold', hex: '#ffd700' },
|
11
|
+
{ name: 'hotpink', hex: '#ff69b4' },
|
12
|
+
{ name: 'firebrick', hex: '#b22222' },
|
13
|
+
{ name: 'indianred', hex: '#cd5c5c' },
|
14
|
+
{ name: 'yellow', hex: '#ffff00' },
|
15
|
+
{ name: 'mistyrose', hex: '#ffe4e1' },
|
16
|
+
{ name: 'darkolivegreen', hex: '#556b2f' },
|
17
|
+
{ name: 'olive', hex: '#808000' },
|
18
|
+
{ name: 'darkseagreen', hex: '#8fbc8f' },
|
19
|
+
{ name: 'pink', hex: '#ffc0cb' },
|
20
|
+
{ name: 'tomato', hex: '#ff6347' },
|
21
|
+
{ name: 'lightcoral', hex: '#f08080' },
|
22
|
+
{ name: 'orangered', hex: '#ff4500' },
|
23
|
+
{ name: 'navajowhite', hex: '#ffdead' },
|
24
|
+
{ name: 'lime', hex: '#00ff00' },
|
25
|
+
{ name: 'palegreen', hex: '#98fb98' },
|
26
|
+
{ name: 'darkslategrey', hex: '#2f4f4f' },
|
27
|
+
{ name: 'greenyellow', hex: '#adff2f' },
|
28
|
+
{ name: 'burlywood', hex: '#deb887' },
|
29
|
+
{ name: 'seashell', hex: '#fff5ee' },
|
30
|
+
{ name: 'mediumspringgreen', hex: '#00fa9a' },
|
31
|
+
{ name: 'fuchsia', hex: '#ff00ff' },
|
32
|
+
{ name: 'papayawhip', hex: '#ffefd5' },
|
33
|
+
{ name: 'blanchedalmond', hex: '#ffebcd' },
|
34
|
+
{ name: 'chartreuse', hex: '#7fff00' },
|
35
|
+
{ name: 'dimgray', hex: '#696969' },
|
36
|
+
{ name: 'black', hex: '#000000' },
|
37
|
+
{ name: 'peachpuff', hex: '#ffdab9' },
|
38
|
+
{ name: 'springgreen', hex: '#00ff7f' },
|
39
|
+
{ name: 'aquamarine', hex: '#7fffd4' },
|
40
|
+
{ name: 'white', hex: '#ffffff' },
|
41
|
+
{ name: 'orange', hex: '#ffa500' },
|
42
|
+
{ name: 'lightsalmon', hex: '#ffa07a' },
|
43
|
+
{ name: 'darkslategray', hex: '#2f4f4f' },
|
44
|
+
{ name: 'brown', hex: '#a52a2a' },
|
45
|
+
{ name: 'ivory', hex: '#fffff0' },
|
46
|
+
{ name: 'dodgerblue', hex: '#1e90ff' },
|
47
|
+
{ name: 'peru', hex: '#cd853f' },
|
48
|
+
{ name: 'lawngreen', hex: '#7cfc00' },
|
49
|
+
{ name: 'chocolate', hex: '#d2691e' },
|
50
|
+
{ name: 'crimson', hex: '#dc143c' },
|
51
|
+
{ name: 'forestgreen', hex: '#228b22' },
|
52
|
+
{ name: 'darkgrey', hex: '#a9a9a9' },
|
53
|
+
{ name: 'lightseagreen', hex: '#20b2aa' },
|
54
|
+
{ name: 'cyan', hex: '#00ffff' },
|
55
|
+
{ name: 'mintcream', hex: '#f5fffa' },
|
56
|
+
{ name: 'silver', hex: '#c0c0c0' },
|
57
|
+
{ name: 'antiquewhite', hex: '#faebd7' },
|
58
|
+
{ name: 'mediumorchid', hex: '#ba55d3' },
|
59
|
+
{ name: 'skyblue', hex: '#87ceeb' },
|
60
|
+
{ name: 'gray', hex: '#808080' },
|
61
|
+
{ name: 'darkturquoise', hex: '#00ced1' },
|
62
|
+
{ name: 'goldenrod', hex: '#daa520' },
|
63
|
+
{ name: 'darkgreen', hex: '#006400' },
|
64
|
+
{ name: 'floralwhite', hex: '#fffaf0' },
|
65
|
+
{ name: 'darkviolet', hex: '#9400d3' },
|
66
|
+
{ name: 'darkgray', hex: '#a9a9a9' },
|
67
|
+
{ name: 'moccasin', hex: '#ffe4b5' },
|
68
|
+
{ name: 'saddlebrown', hex: '#8b4513' },
|
69
|
+
{ name: 'grey', hex: '#808080' },
|
70
|
+
{ name: 'darkslateblue', hex: '#483d8b' },
|
71
|
+
{ name: 'lightskyblue', hex: '#87cefa' },
|
72
|
+
{ name: 'lightpink', hex: '#ffb6c1' },
|
73
|
+
{ name: 'mediumvioletred', hex: '#c71585' },
|
74
|
+
{ name: 'slategrey', hex: '#708090' },
|
75
|
+
{ name: 'red', hex: '#ff0000' },
|
76
|
+
{ name: 'deeppink', hex: '#ff1493' },
|
77
|
+
{ name: 'limegreen', hex: '#32cd32' },
|
78
|
+
{ name: 'darkmagenta', hex: '#8b008b' },
|
79
|
+
{ name: 'palegoldenrod', hex: '#eee8aa' },
|
80
|
+
{ name: 'plum', hex: '#dda0dd' },
|
81
|
+
{ name: 'turquoise', hex: '#40e0d0' },
|
82
|
+
{ name: 'lightgrey', hex: '#d3d3d3' },
|
83
|
+
{ name: 'lightgoldenrodyellow', hex: '#fafad2' },
|
84
|
+
{ name: 'darkgoldenrod', hex: '#b8860b' },
|
85
|
+
{ name: 'lavender', hex: '#e6e6fa' },
|
86
|
+
{ name: 'maroon', hex: '#800000' },
|
87
|
+
{ name: 'yellowgreen', hex: '#9acd32' },
|
88
|
+
{ name: 'sandybrown', hex: '#f4a460' },
|
89
|
+
{ name: 'thistle', hex: '#d8bfd8' },
|
90
|
+
{ name: 'violet', hex: '#ee82ee' },
|
91
|
+
{ name: 'navy', hex: '#000080' },
|
92
|
+
{ name: 'magenta', hex: '#ff00ff' },
|
93
|
+
{ name: 'dimgrey', hex: '#696969' },
|
94
|
+
{ name: 'tan', hex: '#d2b48c' },
|
95
|
+
{ name: 'rosybrown', hex: '#bc8f8f' },
|
96
|
+
{ name: 'olivedrab', hex: '#6b8e23' },
|
97
|
+
{ name: 'blue', hex: '#0000ff' },
|
98
|
+
{ name: 'lightblue', hex: '#add8e6' },
|
99
|
+
{ name: 'ghostwhite', hex: '#f8f8ff' },
|
100
|
+
{ name: 'honeydew', hex: '#f0fff0' },
|
101
|
+
{ name: 'cornflowerblue', hex: '#6495ed' },
|
102
|
+
{ name: 'slateblue', hex: '#6a5acd' },
|
103
|
+
{ name: 'linen', hex: '#faf0e6' },
|
104
|
+
{ name: 'darkblue', hex: '#00008b' },
|
105
|
+
{ name: 'powderblue', hex: '#b0e0e6' },
|
106
|
+
{ name: 'seagreen', hex: '#2e8b57' },
|
107
|
+
{ name: 'darkkhaki', hex: '#bdb76b' },
|
108
|
+
{ name: 'snow', hex: '#fffafa' },
|
109
|
+
{ name: 'sienna', hex: '#a0522d' },
|
110
|
+
{ name: 'mediumblue', hex: '#0000cd' },
|
111
|
+
{ name: 'royalblue', hex: '#4169e1' },
|
112
|
+
{ name: 'lightcyan', hex: '#e0ffff' },
|
113
|
+
{ name: 'green', hex: '#008000' },
|
114
|
+
{ name: 'mediumpurple', hex: '#9370db' },
|
115
|
+
{ name: 'midnightblue', hex: '#191970' },
|
116
|
+
{ name: 'cornsilk', hex: '#fff8dc' },
|
117
|
+
{ name: 'paleturquoise', hex: '#afeeee' },
|
118
|
+
{ name: 'bisque', hex: '#ffe4c4' },
|
119
|
+
{ name: 'slategray', hex: '#708090' },
|
120
|
+
{ name: 'darkcyan', hex: '#008b8b' },
|
121
|
+
{ name: 'khaki', hex: '#f0e68c' },
|
122
|
+
{ name: 'wheat', hex: '#f5deb3' },
|
123
|
+
{ name: 'teal', hex: '#008080' },
|
124
|
+
{ name: 'darkorchid', hex: '#9932cc' },
|
125
|
+
{ name: 'deepskyblue', hex: '#00bfff' },
|
126
|
+
{ name: 'salmon', hex: '#fa8072' },
|
127
|
+
{ name: 'darkred', hex: '#8b0000' },
|
128
|
+
{ name: 'steelblue', hex: '#4682b4' },
|
129
|
+
{ name: 'palevioletred', hex: '#db7093' },
|
130
|
+
{ name: 'lightslategray', hex: '#778899' },
|
131
|
+
{ name: 'aliceblue', hex: '#f0f8ff' },
|
132
|
+
{ name: 'lightslategrey', hex: '#778899' },
|
133
|
+
{ name: 'lightgreen', hex: '#90ee90' },
|
134
|
+
{ name: 'orchid', hex: '#da70d6' },
|
135
|
+
{ name: 'gainsboro', hex: '#dcdcdc' },
|
136
|
+
{ name: 'mediumseagreen', hex: '#3cb371' },
|
137
|
+
{ name: 'lightgray', hex: '#d3d3d3' },
|
138
|
+
{ name: 'mediumturquoise', hex: '#48d1cc' },
|
139
|
+
{ name: 'lemonchiffon', hex: '#fffacd' },
|
140
|
+
{ name: 'cadetblue', hex: '#5f9ea0' },
|
141
|
+
{ name: 'lightyellow', hex: '#ffffe0' },
|
142
|
+
{ name: 'lavenderblush', hex: '#fff0f5' },
|
143
|
+
{ name: 'coral', hex: '#ff7f50' },
|
144
|
+
{ name: 'purple', hex: '#800080' },
|
145
|
+
{ name: 'aqua', hex: '#00ffff' },
|
146
|
+
{ name: 'whitesmoke', hex: '#f5f5f5' },
|
147
|
+
{ name: 'mediumslateblue', hex: '#7b68ee' },
|
148
|
+
{ name: 'darkorange', hex: '#ff8c00' },
|
149
|
+
{ name: 'mediumaquamarine', hex: '#66cdaa' },
|
150
|
+
{ name: 'darksalmon', hex: '#e9967a' },
|
151
|
+
{ name: 'beige', hex: '#f5f5dc' },
|
152
|
+
{ name: 'blueviolet', hex: '#8a2be2' },
|
153
|
+
{ name: 'azure', hex: '#f0ffff' },
|
154
|
+
{ name: 'lightsteelblue', hex: '#b0c4de' },
|
155
|
+
{ name: 'oldlace', hex: '#fdf5e6' },
|
156
|
+
]
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'color_namer_ruby/version'
|
4
|
+
|
5
|
+
require_relative 'color_namer_ruby/basic'
|
6
|
+
require_relative 'color_namer_ruby/html'
|
7
|
+
require_relative 'color_namer_ruby/ntc'
|
8
|
+
require_relative 'color_namer_ruby/pantone'
|
9
|
+
require_relative 'color_namer_ruby/roygbiv'
|
10
|
+
require_relative 'color_namer_ruby/x11'
|
11
|
+
|
12
|
+
require_relative 'color_namer_ruby/namer'
|
13
|
+
require_relative 'color_namer_ruby/distance'
|
14
|
+
|
15
|
+
module ColorNamerRuby
|
16
|
+
class Error < StandardError; end
|
17
|
+
# Your code goes here...
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: color_namer_ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Louis Davis
|
8
|
+
bindir: bin
|
9
|
+
cert_chain: []
|
10
|
+
date: 2025-06-21 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: color_conversion
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - "~>"
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: 0.1.2
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - "~>"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: 0.1.2
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: activesupport
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
description: Provide a color in a variety of formats and get a name back based on
|
41
|
+
a range of colour options and see how closely they match your color.
|
42
|
+
email:
|
43
|
+
- LouisWilliamDavis@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- README.md
|
49
|
+
- Rakefile
|
50
|
+
- lib/color_namer_ruby.rb
|
51
|
+
- lib/color_namer_ruby/basic.rb
|
52
|
+
- lib/color_namer_ruby/distance.rb
|
53
|
+
- lib/color_namer_ruby/html.rb
|
54
|
+
- lib/color_namer_ruby/namer.rb
|
55
|
+
- lib/color_namer_ruby/ntc.rb
|
56
|
+
- lib/color_namer_ruby/pantone.rb
|
57
|
+
- lib/color_namer_ruby/roygbiv.rb
|
58
|
+
- lib/color_namer_ruby/version.rb
|
59
|
+
- lib/color_namer_ruby/x11.rb
|
60
|
+
homepage: https://github.com/louiswdavis/color_namer_ruby
|
61
|
+
licenses:
|
62
|
+
- MIT
|
63
|
+
metadata:
|
64
|
+
homepage_uri: https://github.com/louiswdavis/color_namer_ruby
|
65
|
+
source_code_uri: https://github.com/louiswdavis/color_namer_ruby
|
66
|
+
changelog_uri: https://github.com/louiswdavis/color_namer_ruby/blob/master/CHANGELOG.md
|
67
|
+
rdoc_options: []
|
68
|
+
require_paths:
|
69
|
+
- lib
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 3.1.0
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
requirements: []
|
81
|
+
rubygems_version: 3.6.3
|
82
|
+
specification_version: 4
|
83
|
+
summary: Give me a color and I'll name it.
|
84
|
+
test_files: []
|