Add orx-view-box, adjust for api changes in OPENRNDR
This commit is contained in:
@@ -28,7 +28,8 @@ class LFO(wave: LFOWave = LFOWave.Saw) : TimeTools {
|
||||
private var time = 0.0
|
||||
|
||||
override fun tick(seconds: Double, deltaTime: Double, frameCount: Int) {
|
||||
time += deltaTime
|
||||
//time += deltaTime
|
||||
time = seconds
|
||||
}
|
||||
|
||||
fun sample(frequency: Double = 1.0, phase: Double = 0.0): Double {
|
||||
|
||||
@@ -18,6 +18,6 @@ class TimeOperators : Extension {
|
||||
}
|
||||
|
||||
override fun beforeDraw(drawer: Drawer, program: Program) {
|
||||
operators.forEach { it.tick(program.seconds, program.deltaTime, program.frameCount) }
|
||||
operators.forEach { it.tick(program.seconds, 0.0, 0) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user