Files
orx/orx-jvm/orx-video-profiles/src/demo/kotlin/DemoTIFF01.kt
2021-08-30 17:18:54 +02:00

19 lines
551 B
Kotlin

import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.extra.videoprofiles.TIFFProfile
import org.openrndr.ffmpeg.ScreenRecorder
fun main() = application {
program {
extend(ScreenRecorder()) {
profile = TIFFProfile()
outputFile = "frame-%05d.tif"
maximumFrames = 20
}
extend {
drawer.clear(ColorRGBa.GREEN)
drawer.fill = ColorRGBa.WHITE
drawer.rectangle(frameCount / 20.0 * width, 0.0, 100.0, 100.0)
}
}
}