Created
September 15, 2016 01:45
-
-
Save maxrolon/7c4cdd81c1f151ee637ee5d7b8744ea0 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
var images = [] | |
for (let i = 10; i <= 360;i += 10){ | |
images.push({ | |
getImage: function(){ | |
return new Image().src = `//assets/can_${i}Deg.jpg` | |
} | |
}) | |
} | |
console.dir( images[35].getImage() ) | |
//assets/can_360Deg.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment