'Is there a way to programmatically create a gif from a mo.js animation?

I just want to programmatically create a gif from a very simple mo.js animation like this:

const burst = new mojs.Burst({
    radius: {0:300},
    children: {
        shape: 'rect',
        duration: 3000
    }
});

Thanks for the help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source