mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
fixed FPS for gif version
This commit is contained in:
parent
944f1a53df
commit
198bbaa65d
@ -176,9 +176,10 @@ $.namespace("pskl");
|
||||
|
||||
uploadAsGIF : function () {
|
||||
var encoder = new GIFEncoder(),
|
||||
dpi = 8;
|
||||
dpi = 10;
|
||||
encoder.setRepeat(0);
|
||||
encoder.setDelay(200);
|
||||
var fps = piskel.animationController.fps;
|
||||
encoder.setDelay(1000/fps);
|
||||
|
||||
encoder.start();
|
||||
encoder.setSize(frameSheet.getWidth() * dpi, frameSheet.getHeight() * dpi);
|
||||
|
Loading…
Reference in New Issue
Block a user