module Graphics.Vty.Attributes.Color240
( rgbColorToColor240
, color240CodeToRGB
)
where
import Data.Word (Word8)
import Text.Printf
rgbColorToColor240 :: Integral i => i -> i -> i -> Word8
rgbColorToColor240 :: forall i. Integral i => i -> i -> i -> Word8
rgbColorToColor240 i
r i
g i
b
| i
r forall a. Ord a => a -> a -> Bool
< i
0 Bool -> Bool -> Bool
&& i
g forall a. Ord a => a -> a -> Bool
< i
0 Bool -> Bool -> Bool
&& i
b forall a. Ord a => a -> a -> Bool
< i
0 = forall a. HasCallStack => [Char] -> a
error [Char]
"rgbColor with negative color component intensity"
| i
r forall a. Eq a => a -> a -> Bool
== i
8 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
8 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
8 = Word8
216
| i
r forall a. Eq a => a -> a -> Bool
== i
18 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
18 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
18 = Word8
217
| i
r forall a. Eq a => a -> a -> Bool
== i
28 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
28 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
28 = Word8
218
| i
r forall a. Eq a => a -> a -> Bool
== i
38 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
38 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
38 = Word8
219
| i
r forall a. Eq a => a -> a -> Bool
== i
48 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
48 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
48 = Word8
220
| i
r forall a. Eq a => a -> a -> Bool
== i
58 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
58 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
58 = Word8
221
| i
r forall a. Eq a => a -> a -> Bool
== i
68 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
68 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
68 = Word8
222
| i
r forall a. Eq a => a -> a -> Bool
== i
78 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
78 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
78 = Word8
223
| i
r forall a. Eq a => a -> a -> Bool
== i
88 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
88 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
88 = Word8
224
| i
r forall a. Eq a => a -> a -> Bool
== i
98 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
98 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
98 = Word8
225
| i
r forall a. Eq a => a -> a -> Bool
== i
108 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
108 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
108 = Word8
226
| i
r forall a. Eq a => a -> a -> Bool
== i
118 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
118 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
118 = Word8
227
| i
r forall a. Eq a => a -> a -> Bool
== i
128 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
128 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
128 = Word8
228
| i
r forall a. Eq a => a -> a -> Bool
== i
138 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
138 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
138 = Word8
229
| i
r forall a. Eq a => a -> a -> Bool
== i
148 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
148 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
148 = Word8
230
| i
r forall a. Eq a => a -> a -> Bool
== i
158 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
158 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
158 = Word8
231
| i
r forall a. Eq a => a -> a -> Bool
== i
168 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
168 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
168 = Word8
232
| i
r forall a. Eq a => a -> a -> Bool
== i
178 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
178 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
178 = Word8
233
| i
r forall a. Eq a => a -> a -> Bool
== i
188 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
188 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
188 = Word8
234
| i
r forall a. Eq a => a -> a -> Bool
== i
198 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
198 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
198 = Word8
235
| i
r forall a. Eq a => a -> a -> Bool
== i
208 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
208 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
208 = Word8
236
| i
r forall a. Eq a => a -> a -> Bool
== i
218 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
218 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
218 = Word8
237
| i
r forall a. Eq a => a -> a -> Bool
== i
228 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
228 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
228 = Word8
238
| i
r forall a. Eq a => a -> a -> Bool
== i
238 Bool -> Bool -> Bool
&& i
g forall a. Eq a => a -> a -> Bool
== i
238 Bool -> Bool -> Bool
&& i
b forall a. Eq a => a -> a -> Bool
== i
238 = Word8
239
| Bool
otherwise = Word8
36 forall a. Num a => a -> a -> a
* i -> Word8
go i
r forall a. Num a => a -> a -> a
+ Word8
6 forall a. Num a => a -> a -> a
* i -> Word8
go i
g forall a. Num a => a -> a -> a
+ i -> Word8
go i
b
where go :: i -> Word8
go = forall i. Integral i => Word8 -> i -> Word8
simpleColor_ (forall a. HasCallStack => [Char] -> a
error (forall r. PrintfType r => [Char] -> r
printf [Char]
"RGB color %d %d %d does not map to 240 palette."
(forall a b. (Integral a, Num b) => a -> b
fromIntegral i
r :: Int)
(forall a b. (Integral a, Num b) => a -> b
fromIntegral i
g :: Int)
(forall a b. (Integral a, Num b) => a -> b
fromIntegral i
b :: Int)))
simpleColor_ :: Integral i => Word8 -> i -> Word8
simpleColor_ :: forall i. Integral i => Word8 -> i -> Word8
simpleColor_ Word8
e i
c
| i
c forall a. Ord a => a -> a -> Bool
<= i
0 = Word8
0
| i
c forall a. Ord a => a -> a -> Bool
<= i
95 = Word8
1
| i
c forall a. Ord a => a -> a -> Bool
<= i
255 = forall a b. (Integral a, Num b) => a -> b
fromIntegral ((i
cforall a. Num a => a -> a -> a
-i
16) forall a. Integral a => a -> a -> a
`div` i
40)
| Bool
otherwise = Word8
e
color240CodeToRGB :: Word8 -> Maybe (Int, Int, Int)
color240CodeToRGB :: Word8 -> Maybe (Int, Int, Int)
color240CodeToRGB Word8
n = case Word8
n of
Word8
0 -> forall a. a -> Maybe a
Just (Int
0, Int
0, Int
0)
Word8
1 -> forall a. a -> Maybe a
Just (Int
0, Int
0, Int
95)
Word8
2 -> forall a. a -> Maybe a
Just (Int
0, Int
0, Int
135)
Word8
3 -> forall a. a -> Maybe a
Just (Int
0, Int
0, Int
175)
Word8
4 -> forall a. a -> Maybe a
Just (Int
0, Int
0, Int
215)
Word8
5 -> forall a. a -> Maybe a
Just (Int
0, Int
0, Int
255)
Word8
6 -> forall a. a -> Maybe a
Just (Int
0, Int
95, Int
0)
Word8
7 -> forall a. a -> Maybe a
Just (Int
0, Int
95, Int
95)
Word8
8 -> forall a. a -> Maybe a
Just (Int
0, Int
95, Int
135)
Word8
9 -> forall a. a -> Maybe a
Just (Int
0, Int
95, Int
175)
Word8
10 -> forall a. a -> Maybe a
Just (Int
0, Int
95, Int
215)
Word8
11 -> forall a. a -> Maybe a
Just (Int
0, Int
95, Int
255)
Word8
12 -> forall a. a -> Maybe a
Just (Int
0, Int
135, Int
0)
Word8
13 -> forall a. a -> Maybe a
Just (Int
0, Int
135, Int
95)
Word8
14 -> forall a. a -> Maybe a
Just (Int
0, Int
135, Int
135)
Word8
15 -> forall a. a -> Maybe a
Just (Int
0, Int
135, Int
175)
Word8
16 -> forall a. a -> Maybe a
Just (Int
0, Int
135, Int
215)
Word8
17 -> forall a. a -> Maybe a
Just (Int
0, Int
135, Int
255)
Word8
18 -> forall a. a -> Maybe a
Just (Int
0, Int
175, Int
0)
Word8
19 -> forall a. a -> Maybe a
Just (Int
0, Int
175, Int
95)
Word8
20 -> forall a. a -> Maybe a
Just (Int
0, Int
175, Int
135)
Word8
21 -> forall a. a -> Maybe a
Just (Int
0, Int
175, Int
175)
Word8
22 -> forall a. a -> Maybe a
Just (Int
0, Int
175, Int
215)
Word8
23 -> forall a. a -> Maybe a
Just (Int
0, Int
175, Int
255)
Word8
24 -> forall a. a -> Maybe a
Just (Int
0, Int
215, Int
0)
Word8
25 -> forall a. a -> Maybe a
Just (Int
0, Int
215, Int
95)
Word8
26 -> forall a. a -> Maybe a
Just (Int
0, Int
215, Int
135)
Word8
27 -> forall a. a -> Maybe a
Just (Int
0, Int
215, Int
175)
Word8
28 -> forall a. a -> Maybe a
Just (Int
0, Int
215, Int
215)
Word8
29 -> forall a. a -> Maybe a
Just (Int
0, Int
215, Int
255)
Word8
30 -> forall a. a -> Maybe a
Just (Int
0, Int
255, Int
0)
Word8
31 -> forall a. a -> Maybe a
Just (Int
0, Int
255, Int
95)
Word8
32 -> forall a. a -> Maybe a
Just (Int
0, Int
255, Int
135)
Word8
33 -> forall a. a -> Maybe a
Just (Int
0, Int
255, Int
175)
Word8
34 -> forall a. a -> Maybe a
Just (Int
0, Int
255, Int
215)
Word8
35 -> forall a. a -> Maybe a
Just (Int
0, Int
255, Int
255)
Word8
36 -> forall a. a -> Maybe a
Just (Int
95, Int
0, Int
0)
Word8
37 -> forall a. a -> Maybe a
Just (Int
95, Int
0, Int
95)
Word8
38 -> forall a. a -> Maybe a
Just (Int
95, Int
0, Int
135)
Word8
39 -> forall a. a -> Maybe a
Just (Int
95, Int
0, Int
175)
Word8
40 -> forall a. a -> Maybe a
Just (Int
95, Int
0, Int
215)
Word8
41 -> forall a. a -> Maybe a
Just (Int
95, Int
0, Int
255)
Word8
42 -> forall a. a -> Maybe a
Just (Int
95, Int
95, Int
0)
Word8
43 -> forall a. a -> Maybe a
Just (Int
95, Int
95, Int
95)
Word8
44 -> forall a. a -> Maybe a
Just (Int
95, Int
95, Int
135)
Word8
45 -> forall a. a -> Maybe a
Just (Int
95, Int
95, Int
175)
Word8
46 -> forall a. a -> Maybe a
Just (Int
95, Int
95, Int
215)
Word8
47 -> forall a. a -> Maybe a
Just (Int
95, Int
95, Int
255)
Word8
48 -> forall a. a -> Maybe a
Just (Int
95, Int
135, Int
0)
Word8
49 -> forall a. a -> Maybe a
Just (Int
95, Int
135, Int
95)
Word8
50 -> forall a. a -> Maybe a
Just (Int
95, Int
135, Int
135)
Word8
51 -> forall a. a -> Maybe a
Just (Int
95, Int
135, Int
175)
Word8
52 -> forall a. a -> Maybe a
Just (Int
95, Int
135, Int
215)
Word8
53 -> forall a. a -> Maybe a
Just (Int
95, Int
135, Int
255)
Word8
54 -> forall a. a -> Maybe a
Just (Int
95, Int
175, Int
0)
Word8
55 -> forall a. a -> Maybe a
Just (Int
95, Int
175, Int
95)
Word8
56 -> forall a. a -> Maybe a
Just (Int
95, Int
175, Int
135)
Word8
57 -> forall a. a -> Maybe a
Just (Int
95, Int
175, Int
175)
Word8
58 -> forall a. a -> Maybe a
Just (Int
95, Int
175, Int
215)
Word8
59 -> forall a. a -> Maybe a
Just (Int
95, Int
175, Int
255)
Word8
60 -> forall a. a -> Maybe a
Just (Int
95, Int
215, Int
0)
Word8
61 -> forall a. a -> Maybe a
Just (Int
95, Int
215, Int
95)
Word8
62 -> forall a. a -> Maybe a
Just (Int
95, Int
215, Int
135)
Word8
63 -> forall a. a -> Maybe a
Just (Int
95, Int
215, Int
175)
Word8
64 -> forall a. a -> Maybe a
Just (Int
95, Int
215, Int
215)
Word8
65 -> forall a. a -> Maybe a
Just (Int
95, Int
215, Int
255)
Word8
66 -> forall a. a -> Maybe a
Just (Int
95, Int
255, Int
0)
Word8
67 -> forall a. a -> Maybe a
Just (Int
95, Int
255, Int
95)
Word8
68 -> forall a. a -> Maybe a
Just (Int
95, Int
255, Int
135)
Word8
69 -> forall a. a -> Maybe a
Just (Int
95, Int
255, Int
175)
Word8
70 -> forall a. a -> Maybe a
Just (Int
95, Int
255, Int
215)
Word8
71 -> forall a. a -> Maybe a
Just (Int
95, Int
255, Int
255)
Word8
72 -> forall a. a -> Maybe a
Just (Int
135, Int
0, Int
0)
Word8
73 -> forall a. a -> Maybe a
Just (Int
135, Int
0, Int
95)
Word8
74 -> forall a. a -> Maybe a
Just (Int
135, Int
0, Int
135)
Word8
75 -> forall a. a -> Maybe a
Just (Int
135, Int
0, Int
175)
Word8
76 -> forall a. a -> Maybe a
Just (Int
135, Int
0, Int
215)
Word8
77 -> forall a. a -> Maybe a
Just (Int
135, Int
0, Int
255)
Word8
78 -> forall a. a -> Maybe a
Just (Int
135, Int
95, Int
0)
Word8
79 -> forall a. a -> Maybe a
Just (Int
135, Int
95, Int
95)
Word8
80 -> forall a. a -> Maybe a
Just (Int
135, Int
95, Int
135)
Word8
81 -> forall a. a -> Maybe a
Just (Int
135, Int
95, Int
175)
Word8
82 -> forall a. a -> Maybe a
Just (Int
135, Int
95, Int
215)
Word8
83 -> forall a. a -> Maybe a
Just (Int
135, Int
95, Int
255)
Word8
84 -> forall a. a -> Maybe a
Just (Int
135, Int
135, Int
0)
Word8
85 -> forall a. a -> Maybe a
Just (Int
135, Int
135, Int
95)
Word8
86 -> forall a. a -> Maybe a
Just (Int
135, Int
135, Int
135)
Word8
87 -> forall a. a -> Maybe a
Just (Int
135, Int
135, Int
175)
Word8
88 -> forall a. a -> Maybe a
Just (Int
135, Int
135, Int
215)
Word8
89 -> forall a. a -> Maybe a
Just (Int
135, Int
135, Int
255)
Word8
90 -> forall a. a -> Maybe a
Just (Int
135, Int
175, Int
0)
Word8
91 -> forall a. a -> Maybe a
Just (Int
135, Int
175, Int
95)
Word8
92 -> forall a. a -> Maybe a
Just (Int
135, Int
175, Int
135)
Word8
93 -> forall a. a -> Maybe a
Just (Int
135, Int
175, Int
175)
Word8
94 -> forall a. a -> Maybe a
Just (Int
135, Int
175, Int
215)
Word8
95 -> forall a. a -> Maybe a
Just (Int
135, Int
175, Int
255)
Word8
96 -> forall a. a -> Maybe a
Just (Int
135, Int
215, Int
0)
Word8
97 -> forall a. a -> Maybe a
Just (Int
135, Int
215, Int
95)
Word8
98 -> forall a. a -> Maybe a
Just (Int
135, Int
215, Int
135)
Word8
99 -> forall a. a -> Maybe a
Just (Int
135, Int
215, Int
175)
Word8
100 -> forall a. a -> Maybe a
Just (Int
135, Int
215, Int
215)
Word8
101 -> forall a. a -> Maybe a
Just (Int
135, Int
215, Int
255)
Word8
102 -> forall a. a -> Maybe a
Just (Int
135, Int
255, Int
0)
Word8
103 -> forall a. a -> Maybe a
Just (Int
135, Int
255, Int
95)
Word8
104 -> forall a. a -> Maybe a
Just (Int
135, Int
255, Int
135)
Word8
105 -> forall a. a -> Maybe a
Just (Int
135, Int
255, Int
175)
Word8
106 -> forall a. a -> Maybe a
Just (Int
135, Int
255, Int
215)
Word8
107 -> forall a. a -> Maybe a
Just (Int
135, Int
255, Int
255)
Word8
108 -> forall a. a -> Maybe a
Just (Int
175, Int
0, Int
0)
Word8
109 -> forall a. a -> Maybe a
Just (Int
175, Int
0, Int
95)
Word8
110 -> forall a. a -> Maybe a
Just (Int
175, Int
0, Int
135)
Word8
111 -> forall a. a -> Maybe a
Just (Int
175, Int
0, Int
175)
Word8
112 -> forall a. a -> Maybe a
Just (Int
175, Int
0, Int
215)
Word8
113 -> forall a. a -> Maybe a
Just (Int
175, Int
0, Int
255)
Word8
114 -> forall a. a -> Maybe a
Just (Int
175, Int
95, Int
0)
Word8
115 -> forall a. a -> Maybe a
Just (Int
175, Int
95, Int
95)
Word8
116 -> forall a. a -> Maybe a
Just (Int
175, Int
95, Int
135)
Word8
117 -> forall a. a -> Maybe a
Just (Int
175, Int
95, Int
175)
Word8
118 -> forall a. a -> Maybe a
Just (Int
175, Int
95, Int
215)
Word8
119 -> forall a. a -> Maybe a
Just (Int
175, Int
95, Int
255)
Word8
120 -> forall a. a -> Maybe a
Just (Int
175, Int
135, Int
0)
Word8
121 -> forall a. a -> Maybe a
Just (Int
175, Int
135, Int
95)
Word8
122 -> forall a. a -> Maybe a
Just (Int
175, Int
135, Int
135)
Word8
123 -> forall a. a -> Maybe a
Just (Int
175, Int
135, Int
175)
Word8
124 -> forall a. a -> Maybe a
Just (Int
175, Int
135, Int
215)
Word8
125 -> forall a. a -> Maybe a
Just (Int
175, Int
135, Int
255)
Word8
126 -> forall a. a -> Maybe a
Just (Int
175, Int
175, Int
0)
Word8
127 -> forall a. a -> Maybe a
Just (Int
175, Int
175, Int
95)
Word8
128 -> forall a. a -> Maybe a
Just (Int
175, Int
175, Int
135)
Word8
129 -> forall a. a -> Maybe a
Just (Int
175, Int
175, Int
175)
Word8
130 -> forall a. a -> Maybe a
Just (Int
175, Int
175, Int
215)
Word8
131 -> forall a. a -> Maybe a
Just (Int
175, Int
175, Int
255)
Word8
132 -> forall a. a -> Maybe a
Just (Int
175, Int
215, Int
0)
Word8
133 -> forall a. a -> Maybe a
Just (Int
175, Int
215, Int
95)
Word8
134 -> forall a. a -> Maybe a
Just (Int
175, Int
215, Int
135)
Word8
135 -> forall a. a -> Maybe a
Just (Int
175, Int
215, Int
175)
Word8
136 -> forall a. a -> Maybe a
Just (Int
175, Int
215, Int
215)
Word8
137 -> forall a. a -> Maybe a
Just (Int
175, Int
215, Int
255)
Word8
138 -> forall a. a -> Maybe a
Just (Int
175, Int
255, Int
0)
Word8
139 -> forall a. a -> Maybe a
Just (Int
175, Int
255, Int
95)
Word8
140 -> forall a. a -> Maybe a
Just (Int
175, Int
255, Int
135)
Word8
141 -> forall a. a -> Maybe a
Just (Int
175, Int
255, Int
175)
Word8
142 -> forall a. a -> Maybe a
Just (Int
175, Int
255, Int
215)
Word8
143 -> forall a. a -> Maybe a
Just (Int
175, Int
255, Int
255)
Word8
144 -> forall a. a -> Maybe a
Just (Int
215, Int
0, Int
0)
Word8
145 -> forall a. a -> Maybe a
Just (Int
215, Int
0, Int
95)
Word8
146 -> forall a. a -> Maybe a
Just (Int
215, Int
0, Int
135)
Word8
147 -> forall a. a -> Maybe a
Just (Int
215, Int
0, Int
175)
Word8
148 -> forall a. a -> Maybe a
Just (Int
215, Int
0, Int
215)
Word8
149 -> forall a. a -> Maybe a
Just (Int
215, Int
0, Int
255)
Word8
150 -> forall a. a -> Maybe a
Just (Int
215, Int
95, Int
0)
Word8
151 -> forall a. a -> Maybe a
Just (Int
215, Int
95, Int
95)
Word8
152 -> forall a. a -> Maybe a
Just (Int
215, Int
95, Int
135)
Word8
153 -> forall a. a -> Maybe a
Just (Int
215, Int
95, Int
175)
Word8
154 -> forall a. a -> Maybe a
Just (Int
215, Int
95, Int
215)
Word8
155 -> forall a. a -> Maybe a
Just (Int
215, Int
95, Int
255)
Word8
156 -> forall a. a -> Maybe a
Just (Int
215, Int
135, Int
0)
Word8
157 -> forall a. a -> Maybe a
Just (Int
215, Int
135, Int
95)
Word8
158 -> forall a. a -> Maybe a
Just (Int
215, Int
135, Int
135)
Word8
159 -> forall a. a -> Maybe a
Just (Int
215, Int
135, Int
175)
Word8
160 -> forall a. a -> Maybe a
Just (Int
215, Int
135, Int
215)
Word8
161 -> forall a. a -> Maybe a
Just (Int
215, Int
135, Int
255)
Word8
162 -> forall a. a -> Maybe a
Just (Int
215, Int
175, Int
0)
Word8
163 -> forall a. a -> Maybe a
Just (Int
215, Int
175, Int
95)
Word8
164 -> forall a. a -> Maybe a
Just (Int
215, Int
175, Int
135)
Word8
165 -> forall a. a -> Maybe a
Just (Int
215, Int
175, Int
175)
Word8
166 -> forall a. a -> Maybe a
Just (Int
215, Int
175, Int
215)
Word8
167 -> forall a. a -> Maybe a
Just (Int
215, Int
175, Int
255)
Word8
168 -> forall a. a -> Maybe a
Just (Int
215, Int
215, Int
0)
Word8
169 -> forall a. a -> Maybe a
Just (Int
215, Int
215, Int
95)
Word8
170 -> forall a. a -> Maybe a
Just (Int
215, Int
215, Int
135)
Word8
171 -> forall a. a -> Maybe a
Just (Int
215, Int
215, Int
175)
Word8
172 -> forall a. a -> Maybe a
Just (Int
215, Int
215, Int
215)
Word8
173 -> forall a. a -> Maybe a
Just (Int
215, Int
215, Int
255)
Word8
174 -> forall a. a -> Maybe a
Just (Int
215, Int
255, Int
0)
Word8
175 -> forall a. a -> Maybe a
Just (Int
215, Int
255, Int
95)
Word8
176 -> forall a. a -> Maybe a
Just (Int
215, Int
255, Int
135)
Word8
177 -> forall a. a -> Maybe a
Just (Int
215, Int
255, Int
175)
Word8
178 -> forall a. a -> Maybe a
Just (Int
215, Int
255, Int
215)
Word8
179 -> forall a. a -> Maybe a
Just (Int
215, Int
255, Int
255)
Word8
180 -> forall a. a -> Maybe a
Just (Int
255, Int
0, Int
0)
Word8
181 -> forall a. a -> Maybe a
Just (Int
255, Int
0, Int
95)
Word8
182 -> forall a. a -> Maybe a
Just (Int
255, Int
0, Int
135)
Word8
183 -> forall a. a -> Maybe a
Just (Int
255, Int
0, Int
175)
Word8
184 -> forall a. a -> Maybe a
Just (Int
255, Int
0, Int
215)
Word8
185 -> forall a. a -> Maybe a
Just (Int
255, Int
0, Int
255)
Word8
186 -> forall a. a -> Maybe a
Just (Int
255, Int
95, Int
0)
Word8
187 -> forall a. a -> Maybe a
Just (Int
255, Int
95, Int
95)
Word8
188 -> forall a. a -> Maybe a
Just (Int
255, Int
95, Int
135)
Word8
189 -> forall a. a -> Maybe a
Just (Int
255, Int
95, Int
175)
Word8
190 -> forall a. a -> Maybe a
Just (Int
255, Int
95, Int
215)
Word8
191 -> forall a. a -> Maybe a
Just (Int
255, Int
95, Int
255)
Word8
192 -> forall a. a -> Maybe a
Just (Int
255, Int
135, Int
0)
Word8
193 -> forall a. a -> Maybe a
Just (Int
255, Int
135, Int
95)
Word8
194 -> forall a. a -> Maybe a
Just (Int
255, Int
135, Int
135)
Word8
195 -> forall a. a -> Maybe a
Just (Int
255, Int
135, Int
175)
Word8
196 -> forall a. a -> Maybe a
Just (Int
255, Int
135, Int
215)
Word8
197 -> forall a. a -> Maybe a
Just (Int
255, Int
135, Int
255)
Word8
198 -> forall a. a -> Maybe a
Just (Int
255, Int
175, Int
0)
Word8
199 -> forall a. a -> Maybe a
Just (Int
255, Int
175, Int
95)
Word8
200 -> forall a. a -> Maybe a
Just (Int
255, Int
175, Int
135)
Word8
201 -> forall a. a -> Maybe a
Just (Int
255, Int
175, Int
175)
Word8
202 -> forall a. a -> Maybe a
Just (Int
255, Int
175, Int
215)
Word8
203 -> forall a. a -> Maybe a
Just (Int
255, Int
175, Int
255)
Word8
204 -> forall a. a -> Maybe a
Just (Int
255, Int
215, Int
0)
Word8
205 -> forall a. a -> Maybe a
Just (Int
255, Int
215, Int
95)
Word8
206 -> forall a. a -> Maybe a
Just (Int
255, Int
215, Int
135)
Word8
207 -> forall a. a -> Maybe a
Just (Int
255, Int
215, Int
175)
Word8
208 -> forall a. a -> Maybe a
Just (Int
255, Int
215, Int
215)
Word8
209 -> forall a. a -> Maybe a
Just (Int
255, Int
215, Int
255)
Word8
210 -> forall a. a -> Maybe a
Just (Int
255, Int
255, Int
0)
Word8
211 -> forall a. a -> Maybe a
Just (Int
255, Int
255, Int
95)
Word8
212 -> forall a. a -> Maybe a
Just (Int
255, Int
255, Int
135)
Word8
213 -> forall a. a -> Maybe a
Just (Int
255, Int
255, Int
175)
Word8
214 -> forall a. a -> Maybe a
Just (Int
255, Int
255, Int
215)
Word8
215 -> forall a. a -> Maybe a
Just (Int
255, Int
255, Int
255)
Word8
216 -> forall a. a -> Maybe a
Just (Int
8, Int
8, Int
8)
Word8
217 -> forall a. a -> Maybe a
Just (Int
18, Int
18, Int
18)
Word8
218 -> forall a. a -> Maybe a
Just (Int
28, Int
28, Int
28)
Word8
219 -> forall a. a -> Maybe a
Just (Int
38, Int
38, Int
38)
Word8
220 -> forall a. a -> Maybe a
Just (Int
48, Int
48, Int
48)
Word8
221 -> forall a. a -> Maybe a
Just (Int
58, Int
58, Int
58)
Word8
222 -> forall a. a -> Maybe a
Just (Int
68, Int
68, Int
68)
Word8
223 -> forall a. a -> Maybe a
Just (Int
78, Int
78, Int
78)
Word8
224 -> forall a. a -> Maybe a
Just (Int
88, Int
88, Int
88)
Word8
225 -> forall a. a -> Maybe a
Just (Int
98, Int
98, Int
98)
Word8
226 -> forall a. a -> Maybe a
Just (Int
108, Int
108, Int
108)
Word8
227 -> forall a. a -> Maybe a
Just (Int
118, Int
118, Int
118)
Word8
228 -> forall a. a -> Maybe a
Just (Int
128, Int
128, Int
128)
Word8
229 -> forall a. a -> Maybe a
Just (Int
138, Int
138, Int
138)
Word8
230 -> forall a. a -> Maybe a
Just (Int
148, Int
148, Int
148)
Word8
231 -> forall a. a -> Maybe a
Just (Int
158, Int
158, Int
158)
Word8
232 -> forall a. a -> Maybe a
Just (Int
168, Int
168, Int
168)
Word8
233 -> forall a. a -> Maybe a
Just (Int
178, Int
178, Int
178)
Word8
234 -> forall a. a -> Maybe a
Just (Int
188, Int
188, Int
188)
Word8
235 -> forall a. a -> Maybe a
Just (Int
198, Int
198, Int
198)
Word8
236 -> forall a. a -> Maybe a
Just (Int
208, Int
208, Int
208)
Word8
237 -> forall a. a -> Maybe a
Just (Int
218, Int
218, Int
218)
Word8
238 -> forall a. a -> Maybe a
Just (Int
228, Int
228, Int
228)
Word8
239 -> forall a. a -> Maybe a
Just (Int
238, Int
238, Int
238)
Word8
_ -> forall a. Maybe a
Nothing