function rgbToNumber(r, g, b) {
  return r << 16 ^ g << 8 ^ b
}
Utility for converting one of the supported color value types to a 24-bit numeric color
representation.
@param {*} value - The input value to translate. Supported types:
- 24-bit number: simply returned as is
- string value: evaluated using a canvas context, so supports color keywords, rgb(), hsl(), etc.
- a three.js `Color` object
@return {*}