Add orx-view-box, adjust for api changes in OPENRNDR

This commit is contained in:
Edwin Jakobs
2022-11-30 11:32:12 +01:00
parent 711222db33
commit 4c22687763
16 changed files with 349 additions and 33 deletions

View File

@@ -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 {

View File

@@ -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) }
}
}