Created
October 30, 2017 16:36
-
-
Save washer/eedd49f9e616bf98020e1b75e635fe5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.loadImages = function(callback) { | |
// Load images to list | |
for (let i = 0; i < this.imgCount; i++) { | |
this.images[i] = loadImage(this.path + 'brain_' + str(i) + '.jpg'); | |
} | |
callback(); | |
}; | |
// Final setup of object | |
this.loadImages(() => { | |
// Do stuff afterwards | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment