×
A new build of Corona SDK is now available to subscribers. Not a subscriber? Subscribe now.
CoronaSDK 2012.821 | Released: 23 May 2012, 2:01am | What's New | Download Now

easing.inOutQuad( )

Description:

Starts animation from a zero velocity, accelerates, then decelerate to a zero velocity.

Syntax:

transition.to(displayObject, { transition=easing.inOutQuad})
transition.from(displayObject, { transition=easing.inOutQuad})
transition.dissolve(displayObject, { transition=easing.inOutQuad})

Example:

This example creates and animates a circle across the stage.

local currentTarget = display.newCircle(100, 100, 100)
currentTarget:setFillColor(255,000,000)
transition.to(currentTarget, { time=400, y=300, transition=easing.inOutQuad})

Parameters:

None. 

Returns:

Nothing.

Remarks:

Easing is intended to be used with transition.to and transition.from APIs.

Supported on operating systems and platforms for build numbers shown:
  • Mac OS X:
    Corona SDK 1.0
  • Windows:
    Corona SDK 2.0
  • iOS:
    Corona SDK 1.0
  • Android:
    Corona SDK 2.0