1. RGB 转换为十六进制const rgbToHex = (r, g, b) => "#" + ((1 << 24) + (r << 16)...