I'm creating a GIF based on a Canvas animation using GIF.js. However, only a portion of my GIF is visible, with the rest covered in black. How do I make the full animation appear?
I'm creating a GIF based on a Canvas animation using GIF.js. However, only a portion of my GIF is visible, with the rest covered in black. How do I make the full animation appear?
You probably need to set the height and width of your Canvas element before animating.
let canvas:HTMLCanvasElement=document.createElement('canvas');
canvas.width = 600;
canvas.height = 390;