(input)
| 1595 | } |
| 1596 | |
| 1597 | function normalizeColor (input) { |
| 1598 | let output = { |
| 1599 | r: input.r / 255, |
| 1600 | g: input.g / 255, |
| 1601 | b: input.b / 255 |
| 1602 | }; |
| 1603 | return output; |
| 1604 | } |
| 1605 | |
| 1606 | function wrap (value, min, max) { |
| 1607 | let range = max - min; |