Skip to content

Commit 7dbc74a

Browse files
authored
Fix formatting and spacing in loading_displaying.js
1 parent 94fb0d0 commit 7dbc74a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/image/loading_displaying.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)