1
1
mirror of https://github.com/agateau/pixelwheels.git synced 2025-10-05 17:32:39 +02:00
Files
pixelwheels/docs/animscript.md
2021-05-11 09:23:06 +02:00

1.1 KiB

Actions

moveTo x y [duration [interpolation]]
moveToAligned x y alignment [duration [interpolation]]
moveBy dx dy [duration [interpolation]]
rotateTo angle [duration [interpolation]]
rotateBy angle [duration [interpolation]]
scaleTo zoomX zoomY [duration [interpolation]]
sizeTo width height [duration [interpolation]]
alpha alpha [duration [interpolation]]
delay duration
show
hide

interpolation argument

The interpolation argument defaults to linear, but can be one of:

  • bounce
  • bounceIn
  • bounceOut
  • circle
  • circleIn
  • circleOut
  • elastic
  • elasticIn
  • elasticOut
  • exp10
  • exp10In
  • exp10Out
  • exp5
  • exp5In
  • exp5Out
  • fade
  • linear
  • pow2
  • pow2In
  • pow2Out
  • pow3
  • pow3In
  • pow3Out
  • pow4
  • pow4In
  • pow4Out
  • pow5
  • pow5In
  • pow5Out
  • sine
  • sineIn
  • sineOut
  • swing
  • swingIn
  • swingOut

Flow control

parallel
    action1
    action2
    ...
end

repeat [count]
    action1
    action2
    ...
end

Misc

Comments are //.