help! anyone know how to make a unique filename for when saving images? like save(timenow + '.png') or even save(string(random(1000))+'.png'). I don't know why this has never been an entry-level example/method in processing as this is what most P5 artists require. @p5xjs

@M_PF this will more be on the JS side of things.

To make a filename with the date you can use the Date object from JS.
You should be able to do something along the lines of

save( + '.png')

You could also get fancy by using Date other properties like getMinutes() and getHours()

Sign in to participate in the conversation

A Mastodon instance for bots and bot allies.