Files
orx/orx-jvm/orx-gui/src/demo/kotlin/DemoMultiWindow02.kt
2025-11-22 19:08:30 +01:00

29 lines
758 B
Kotlin

import org.openrndr.application
import org.openrndr.extra.gui.WindowedGUI
import org.openrndr.extra.parameters.DoubleParameter
import kotlin.system.exitProcess
/**
* Demonstration of a multi window GUI using the `WindowedGUI` extension
*/
fun main() {
// skip this demo on CI
if (System.getProperty("takeScreenshot") == "true") {
exitProcess(0)
}
application {
program {
val settings = object {
@DoubleParameter("radius", 10.0, 100.0)
var radius = 10.0
}
val gui = WindowedGUI()
gui.add(settings)
extend(gui)
extend {
drawer.circle(drawer.bounds.center, settings.radius)
}
}
}
}