(pixels, channel, index)
| 467 | } |
| 468 | |
| 469 | function writeChannel(pixels, channel, index) { |
| 470 | const pixelsLength = pixels.length / 4; |
| 471 | for (let i = 0; i < pixelsLength; ++i) { |
| 472 | const value = channel.readUInt8(i); |
| 473 | pixels.writeUInt8(value, i * 4 + index); |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | function getMinimumDimensions(textures, options) { |
| 478 | let width = Number.POSITIVE_INFINITY; |
no outgoing calls
no test coverage detected