Home Reference Source Repository

js/SpriteKit/SKActionTimingMode.js

  1. 'use strict'
  2.  
  3.  
  4. /**
  5. * The modes that an action can use to adjust the apparent timing of the action.
  6. * @typedef {Object} SKActionTimingMode
  7. * @property {number} linear - Specifies linear pacing. Linear pacing causes an animation to occur evenly over its duration.
  8. * @property {number} easeIn - Specifies ease-in pacing. Ease-in pacing causes the animation to begin slowly and then speed up as it progresses.
  9. * @property {number} easeOut - Specifies ease-out pacing. Ease-out pacing causes the animation to begin quickly and then slow as it completes.
  10. * @property {number} easeInEaseOut - Specifies ease-in ease-out pacing. An ease-in ease-out animation begins slowly, accelerates through the middle of its duration, and then slows again before completing.
  11. * @see https://developer.apple.com/documentation/spritekit/skactiontimingmode
  12. */
  13. const SKActionTimingMode = {
  14. linear: 0,
  15. easeIn: 1,
  16. easeOut: 2,
  17. easeInEaseOut: 3
  18. }
  19.  
  20. export default SKActionTimingMode