Changed version + Updated docs for Blink()

This commit is contained in:
Mr-KayJayDee
2021-01-18 20:20:46 +01:00
parent 8d3b3333ce
commit 9d6d92aa74
3 changed files with 9 additions and 5 deletions

View File

@@ -4,10 +4,9 @@ const GIFEncoder = require(`gifencoder`);
module.exports = class Blink {
async getImage( ...images) {
console.log(images)
if (!images || images.length < 2) throw new Error(`You must provide an image as a first argument.`);
if (!images || images.length < 2) throw new Error(`You must provide at least two images.`);
const GIF = new GIFEncoder(480, 480)
const GIF = new GIFEncoder(480, 480);
GIF.start();
GIF.setRepeat(0);
GIF.setDelay(1000);