(hex)
| 1196 | } |
| 1197 | |
| 1198 | _hexToRgb(hex) { |
| 1199 | const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex || '#000000'); |
| 1200 | if (!result) return [0, 0, 0]; |
| 1201 | return [parseInt(result[1], 16) / 255, parseInt(result[2], 16) / 255, parseInt(result[3], 16) / 255]; |
| 1202 | } |
| 1203 | |
| 1204 | destroy() { |
| 1205 | const gl = this.gl; |
no outgoing calls
no test coverage detected