(color: Color)
| 45 | ); |
| 46 | |
| 47 | export const colorToRgbString = (color: Color): string => |
| 48 | [color.red, color.green, color.blue].map(channelToByte).join(" "); |
| 49 | |
| 50 | export const hexToColor = (hex: string): Color => { |
| 51 | const [red, green, blue] = hexToRgb(hex); |