UNPKG

image-js

Version:

Image processing and manipulation in JavaScript

13 lines (12 loc) 284 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = zerosMatrix; function zerosMatrix(height, width) { let matrix = new Array(height); for (let i = 0; i < height; i++) { matrix[i] = new Array(width).fill(0); } return matrix; }