(rgb: RGB)
| 121 | * @returns A numeric value representing the RGB color. |
| 122 | */ |
| 123 | export function rgb_int(rgb: RGB): number { |
| 124 | return (rgb.r << 16) | (rgb.g << 8) | rgb.b |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Converts a numeric representation (32-bit integer) to an RGB color. |
no outgoing calls
no test coverage detected
searching dependent graphs…