[orx-temporal-blur] Fix TemporalBlur compatibility with ProgramImplementation
This commit is contained in:
@@ -5,16 +5,10 @@ import org.openrndr.math.Polar
|
||||
|
||||
fun main() = application {
|
||||
program {
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
extend(TemporalBlur()) {
|
||||
samples = 10
|
||||
duration = 0.9
|
||||
}
|
||||
|
||||
extend {
|
||||
drawer.circle(Polar(seconds * 360.0, 200.0).cartesian + drawer.bounds.center, 50.0)
|
||||
}
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
import org.openrndr.application
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.draw.tint
|
||||
import org.openrndr.extensions.SingleScreenshot
|
||||
import org.openrndr.extra.temporalblur.TemporalBlur
|
||||
import org.openrndr.math.Polar
|
||||
import kotlin.math.cos
|
||||
|
||||
fun main() = application {
|
||||
program {
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
extend(TemporalBlur()) {
|
||||
samples = 100
|
||||
duration = 10.0
|
||||
|
||||
Reference in New Issue
Block a user