[orx-fcurve] Fix demos

This commit is contained in:
Edwin Jakobs
2024-05-09 10:43:01 +02:00
parent 15e1b4b04a
commit 7063cd259c
3 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ fun main() {
} }
program { program {
val xpos = fcurve("M0 Q4,360,5,720").sampler() val xpos = fcurve("M0 Q4,360,5,720").sampler()
val ypos = fcurve("M360 H5").sampler() val ypos = fcurve("M360 h5").sampler()
extend { extend {
drawer.circle(xpos(seconds.mod(5.0)), ypos(seconds.mod(5.0)), 100.0) drawer.circle(xpos(seconds.mod(5.0)), ypos(seconds.mod(5.0)), 100.0)

View File

@@ -13,7 +13,7 @@ fun main() {
program { program {
val xposCurve = fcurve("M0 Q4,360,5,720") val xposCurve = fcurve("M0 Q4,360,5,720")
val xpos = xposCurve.sampler() val xpos = xposCurve.sampler()
val yposCurve = fcurve("M360 H5") val yposCurve = fcurve("M360 h5")
val ypos = yposCurve.sampler() val ypos = yposCurve.sampler()

View File

@@ -12,7 +12,7 @@ fun main() {
program { program {
class XYAnimation : MultiFCurve(mapOf( class XYAnimation : MultiFCurve(mapOf(
"x" to fcurve("M0 Q4,360,5,720"), "x" to fcurve("M0 Q4,360,5,720"),
"y" to fcurve("M360 H5") "y" to fcurve("M360 h5")
)) { )) {
val position = vector2("x", "y") val position = vector2("x", "y")
} }