Upgrade to OPENRNDR 0.4 snapshot
This commit is contained in:
16
orx-jvm/orx-video-profiles/src/demo/kotlin/DemoGIF01.kt
Normal file
16
orx-jvm/orx-video-profiles/src/demo/kotlin/DemoGIF01.kt
Normal file
@@ -0,0 +1,16 @@
|
||||
import org.openrndr.application
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.extra.videoprofiles.GIFProfile
|
||||
import org.openrndr.extra.videoprofiles.ProresProfile
|
||||
import org.openrndr.ffmpeg.ScreenRecorder
|
||||
|
||||
suspend fun main() = application {
|
||||
program {
|
||||
extend(ScreenRecorder()) {
|
||||
profile = GIFProfile()
|
||||
}
|
||||
extend {
|
||||
drawer.clear(ColorRGBa.GREEN)
|
||||
}
|
||||
}
|
||||
}
|
||||
15
orx-jvm/orx-video-profiles/src/demo/kotlin/DemoProres01.kt
Normal file
15
orx-jvm/orx-video-profiles/src/demo/kotlin/DemoProres01.kt
Normal file
@@ -0,0 +1,15 @@
|
||||
import org.openrndr.application
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.extra.videoprofiles.ProresProfile
|
||||
import org.openrndr.ffmpeg.ScreenRecorder
|
||||
|
||||
suspend fun main() = application {
|
||||
program {
|
||||
extend(ScreenRecorder()) {
|
||||
profile = ProresProfile()
|
||||
}
|
||||
extend {
|
||||
drawer.clear(ColorRGBa.GREEN)
|
||||
}
|
||||
}
|
||||
}
|
||||
19
orx-jvm/orx-video-profiles/src/demo/kotlin/DemoTIFF01.kt
Normal file
19
orx-jvm/orx-video-profiles/src/demo/kotlin/DemoTIFF01.kt
Normal file
@@ -0,0 +1,19 @@
|
||||
import org.openrndr.application
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.extra.videoprofiles.TIFFProfile
|
||||
import org.openrndr.ffmpeg.ScreenRecorder
|
||||
|
||||
suspend 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user