Loading...
Logo
Processing Forum
Hi all,

I'm new to processing, and trying to write code to do a simple slideshow. The slideshow is simply an image shown on a screen for a number of seconds, followed by the next, and looped from the beginning.

I've been looking into arrays and classes since I know that doing it via brute repetition is horribly inefficient, but the problem I have is that the number of images is not constant; it steadily increases over time as new images are added through a webcam capture.

Any help would be greatly appreciated! Thanks!

Replies(2)

Adding images to the array is trivial, just use append().
What do you have so far?

That's interesting!

Are the new images named in a specific way (date/time or increasing number)?

Then you could save the last image's name and search from there the new ones.

You could also store all names in an arraylist and check with contains whether an Image is new - but when you check all every time, it's gonna be slow...