openrndr / org.openrndr.utils

Package org.openrndr.utils

Functions

namedTimestamp

Use to automatically generate a String like path/basename-date.extension when saving files like videos, images, json, etc. basename defaults to the current program or window name. Used by ScreenRecorder, Screenshots and available to the user.

fun Program.namedTimestamp(extension: String = "", folder: String? = null): String