From 198bbaa65dbda0514216ec604de6f767d7253dab Mon Sep 17 00:00:00 2001 From: jdescottes Date: Sun, 7 Apr 2013 21:26:51 +0200 Subject: [PATCH] fixed FPS for gif version --- js/piskel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/piskel.js b/js/piskel.js index 13e0d3aa..7cb0afde 100644 --- a/js/piskel.js +++ b/js/piskel.js @@ -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);