colour conversion: implement stub
colour conversion: implement stub: a task in smol-software-harbor (Harbor dataset). rgbToHex(r, g, b) in lib/color.js is not implemented, which also breaks lighten() . Implement it as the comment says: three integers 0..255 become rrggbb in lowercase with two hex digits per channel; a non-integer…
The task
`rgbToHex(r, g, b)` in `lib/color.js` is not implemented, which also breaks `lighten()`. Implement it as the comment says: three integers 0..255 become `#rrggbb` in lowercase with two hex digits per channel; a non-integer or out-of-range channel throws `RangeError`. Run `node --test test/*.test.js`.
Part of efederici/smol-software-harbor.