Dynamic Array of images
in
Programming Questions
•
1 month ago
Greetings!
I am having a bit of an issue creating a dynamic array thats accessing a folder of images.
Essentially I want to load the images within the array. The folder will constantly be updating new files, hence why it needs to be dynamic.
Here is what I found in the forums and tried to implement without luck::
- String[] imgUrls= loadStrings("/users/me/Desktop/myFolderofFiles");
- PImage[] images = new PImage[imgUrls.length];
- for(int i = 0; i<imgUrls.length;i++){
- images[i] = loadImage(imgUrls[i]);
}
1