Files
orx/orx-jvm/orx-git-archiver/src/demo/kotlin/GitArchiverDemo01.kt
Edwin Jakobs 9921857007 Fix demos
2021-10-21 21:05:17 +02:00

25 lines
605 B
Kotlin

import org.openrndr.application
import org.openrndr.extensions.Screenshots
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.gitarchiver.GitArchiver
fun main() = application {
program {
if (System.getProperty("takeScreenshot") == "true") {
extend(SingleScreenshot()) {
this.outputFile = System.getProperty("screenshotPath")
}
}
val ga = extend(GitArchiver()) {
commitOnRun = true
commitOnRequestAssets = false
}
extend(Screenshots())
extend {
}
}
}