examples/geometries_slice/geometries_slice.js
function rgbToHex(r, g, b) {
  return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
}
function rgbToHex(r, g, b) {
  return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
}
Convert RGB to HEX
@param {*} r
@param {*} g
@param {*} b

@return {*}