[orx-fcurve] Fix demos
This commit is contained in:
@@ -9,7 +9,7 @@ fun main() {
|
||||
}
|
||||
program {
|
||||
val xpos = fcurve("M0 Q4,360,5,720").sampler()
|
||||
val ypos = fcurve("M360 H5").sampler()
|
||||
val ypos = fcurve("M360 h5").sampler()
|
||||
|
||||
extend {
|
||||
drawer.circle(xpos(seconds.mod(5.0)), ypos(seconds.mod(5.0)), 100.0)
|
||||
|
||||
@@ -13,7 +13,7 @@ fun main() {
|
||||
program {
|
||||
val xposCurve = fcurve("M0 Q4,360,5,720")
|
||||
val xpos = xposCurve.sampler()
|
||||
val yposCurve = fcurve("M360 H5")
|
||||
val yposCurve = fcurve("M360 h5")
|
||||
val ypos = yposCurve.sampler()
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ fun main() {
|
||||
program {
|
||||
class XYAnimation : MultiFCurve(mapOf(
|
||||
"x" to fcurve("M0 Q4,360,5,720"),
|
||||
"y" to fcurve("M360 H5")
|
||||
"y" to fcurve("M360 h5")
|
||||
)) {
|
||||
val position = vector2("x", "y")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user