utils.js 132 B

1234567
  1. function mkImgArray(dir, count=10) {
  2. const out = [];
  3. for(let i = 0; i < count; i++)
  4. out.push(`${dir}/${i}.png`);
  5. return out;
  6. }