(number)
| 205 | }; |
| 206 | |
| 207 | const hexify = (number) => { |
| 208 | const string = number.toString(16); |
| 209 | if (string.length === 2) return string; |
| 210 | return "0" + string; |
| 211 | }; |
| 212 | |
| 213 | const getSplash = (red, green, blue) => { |
| 214 | const closestRed = getClosest(red, reds).toString(); |