File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -327,8 +327,9 @@ function loadingDisplaying(p5, fn){
327327 const nFramesDelay = units === 'seconds' ? delay * _frameRate : delay ;
328328
329329 // initialize variables for the frames processing
330- let frameIterator ;
330+ let frameIterator ;
331331 let totalNumberOfFrames ;
332+
332333 if ( resetAnimation ) {
333334 frameIterator = nFramesDelay ;
334335 this . frameCount = frameIterator ;
@@ -338,7 +339,6 @@ function loadingDisplaying(p5, fn){
338339 totalNumberOfFrames = frameIterator + nFrames ;
339340 }
340341
341-
342342 const lastPixelDensity = this . _renderer . _pixelDensity ;
343343 this . pixelDensity ( 1 ) ;
344344
@@ -390,7 +390,7 @@ function loadingDisplaying(p5, fn){
390390 to be drawn and immediately save it to a buffer and continue
391391 */
392392 this . redraw ( ) ;
393- await new Promise ( requestAnimationFrame ) ;
393+ await new Promise ( requestAnimationFrame ) ;
394394 // depending on the context we'll extract the pixels one way
395395 // or another
396396 let data = undefined ;
You can’t perform that action at this time.
0 commit comments