All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jsMain.org.openrndr.rootClassName.kt Maven / Gradle / Ivy

package org.openrndr

actual fun rootClassName(): String {
    return "unknown"
}

actual fun Program.namedTimestamp(extension: String, path: String?): String {
    val ext = when {
        extension.isEmpty() -> ""
        extension.startsWith(".") -> extension
        else -> ".$extension"
    }
    val basename = this.name.ifBlank { this.window.title.ifBlank { "untitled" } }

    return "$path$basename$ext"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy