transition=easing: What is the trick to make this work in the simulator?

What is the trick to make this work in the simulator?

local circle = display.newCircle( 100, 100, 40 )

circle:setFillColor( 0, 0, 1 )

transition.to( circle, { time=400, y=200, transition=easing.inExpo } )

Tell us what is happening when you execute this code.

https://docs.coronalabs.com/api/library/easing/index.html

It would have to do what the graphs say, but it does a straight line with change in acceleration.

The easing library visuals show you how the transition will act over time.  Since you are only adjusting the y value, it will move in a straight line to the new y location with a change in acceleration.  Try adjusting the x value as well if you want it to move in two dimensions.

If I add x, the path is still a line. I ask: What other data do I have to add so that the trajectory is like the graphs?

The graphs indicate how the speed of the transition changes over time, not the path it will take. It will always go in a straight line. If you want a curved movement, you have to calculate the points yourself.

Ah Yes, like @nick_sherman said, you will need to calculate the points yourself.  It will take some trigonometry and an enterFrame function to do that or you can tryMarkus Ranner’s transition library called transition2 that has curved transition (moveSin I think).

Ahh…OK. 

Tell us what is happening when you execute this code.

https://docs.coronalabs.com/api/library/easing/index.html

It would have to do what the graphs say, but it does a straight line with change in acceleration.

The easing library visuals show you how the transition will act over time.  Since you are only adjusting the y value, it will move in a straight line to the new y location with a change in acceleration.  Try adjusting the x value as well if you want it to move in two dimensions.

If I add x, the path is still a line. I ask: What other data do I have to add so that the trajectory is like the graphs?

The graphs indicate how the speed of the transition changes over time, not the path it will take. It will always go in a straight line. If you want a curved movement, you have to calculate the points yourself.

Ah Yes, like @nick_sherman said, you will need to calculate the points yourself.  It will take some trigonometry and an enterFrame function to do that or you can tryMarkus Ranner’s transition library called transition2 that has curved transition (moveSin I think).

Ahh…OK.