Convert a 32-bit integer color value to an RGBA object.
(i: number)
| 139 | Convert a 32-bit integer color value to an RGBA object. |
| 140 | */ |
| 141 | function intToRGBA(i: number) { |
| 142 | const a = i & 0xff; |
| 143 | i >>>= 8; |
| 144 | const b = i & 0xff; |
| 145 | i >>>= 8; |
| 146 | const g = i & 0xff; |
| 147 | i >>>= 8; |
| 148 | const r = i & 0xff; |
| 149 | |
| 150 | return { r, g, b, a }; |
| 151 | } |
| 152 | |
| 153 | const c: number[] = []; |
| 154 |
no outgoing calls
no test coverage detected
searching dependent graphs…