NamespaceActions Class Reference
Inherits from | JavaScript Object |
Location | aphid.g2d.actions |
Overview of Tasks
Attributes
- Name
-
TYPE_MASK_CALL_FUNCTION
-
TYPE_MASK_CAMERA
-
TYPE_MASK_DEFAULT
-
TYPE_MASK_EASE
-
TYPE_MASK_FINITE_TIME
-
TYPE_MASK_GRID
-
TYPE_MASK_GRID3D
-
TYPE_MASK_INSTANT
-
TYPE_MASK_INTERVAL
-
TYPE_MASK_TILED_GRID3D
- Type
-
int
-
int
-
int
-
int
-
int
-
int
-
int
-
int
-
int
-
int
- Writability
-
readonly
-
readonly
-
readonly
-
readonly
-
readonly
-
readonly
-
readonly
-
readonly
-
readonly
-
readonly
Camera Actions
- Return Type
-
IntervalAction
Ease Actions
- Signature
-
easeBackIn(action)
-
easeBackInOut(action)
-
easeBackOut(action)
-
easeBounceIn(action)
-
easeBounceInOut(action)
-
easeBounceOut(action)
-
easeElasticIn(action, period)
-
easeElasticInOut(action, period)
-
easeElasticOut(action, period)
-
easeExponentialIn(action)
-
easeExponentialInOut(action)
-
easeExponentialOut(action)
-
easeIn(action, rate)
-
easeInOut(action, rate)
-
easeOut(action, rate)
-
easeSineIn(action)
-
easeSineInOut(action)
-
easeSineOut(action)
- Return Type
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
-
EaseAction
Grid Actions
- Signature
-
accelAmplitude(action, duration)
-
accelDeccelAmplitude(action, duration)
-
deccelAmplitude(action, duration)
-
reuseGrid(times)
-
stopGrid()
- Return Type
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
InstantAction
-
InstantAction
Grid3D Actions
- Signature
-
flipX3D(duration)
-
flipY3D(duration)
-
lens3D(pos, radius, gridSize, duration)
-
liquid(waves, amplitude, gridSize, duration)
-
pageTurn3D(gridSize, duration)
-
ripple3D(pos, radius, waves, amplitude, gridSize, duration)
-
shaky3D(range, shakeZ, gridSize, duration)
-
twirl(pos, twirls, amplitude, gridSize, duration)
-
waves(waves, amplitude, isHorizontal, isVertical, gridSize, duration)
-
waves3D(waves, amplitude, gridSize, duration)
- Return Type
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
Instant Actions
- Return Type
-
InstantAction
-
InstantAction
-
InstantAction
-
InstantAction
-
InstantAction
-
InstantAction
-
InstantAction
Interval Actions
- Signature
-
animate(animation, [restoreOriginalFrame])
-
animate(duration, animation, [restoreOriginalFrame])
-
bezierBy(duration, endPosition, controlPoint1, controlPoint2)
-
bezierTo(duration, endPosition, controlPoint1, controlPoint2)
-
blink(duration, times)
-
delay(duration)
-
fadeIn(duration)
-
fadeOut(duration)
-
fadeTo(duration, opacity)
-
jumpBy(duration, deltaPosition, height, jumps)
-
jumpTo(duration, position, height, jumps)
-
moveBy(duration, deltaPosition)
-
moveBy(duration, deltaX, deltaY)
-
moveTo(duration, position)
-
moveTo(duration, x, y)
-
repeat(action, times)
-
rotateBy(duration, deltaAngle)
-
rotateTo(duration, angle)
-
scaleBy(duration, deltaScaleXY)
-
scaleBy(duration, deltaScale)
-
scaleTo(duration, scale)
-
scaleTo(duration, scaleX, scaleY)
-
sequence(action0, action1,...)
-
skewBy(duration, deltaSkew)
-
skewBy(duration, deltaSkewX, deltaSkewY)
-
skewTo(duration, skew)
-
skewTo(duration, skewX, skewY)
-
spawn(action0, action1,...)
-
tintBy(duration, r, g, b)
-
tintBy(duration, byColor)
-
tintTo(duration, r, g, b)
- Return Type
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
-
IntervalAction
Misc Actions
- Return Type
-
Action
-
Action
-
Action
Tiled Grid Actions
- Signature
-
fadeOutBLTiles(gridSize, duration)
-
fadeOutDownTiles(gridSize, duration)
-
fadeOutTRTiles(gridSize, duration)
-
fadeOutUpTiles(gridSize, duration)
-
jumpTiles3D(waves, amplitude, gridSize, duration)
-
shakyTiles3D(range, shakeZ, gridSize, duration)
-
shatteredTiles3D(range, shatterZ, gridSize, duration)
-
shuffleTiles(seed, gridSize, duration)
-
splitColumns(cols, duration)
-
splitRows(rows, duration)
-
turnOffTiles(seed, gridSize, duration)
-
wavesTiles3D(waves, amplitude, gridSize, duration)
- Return Type
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
-
GridBaseAction
Functions
bezierBy(duration, endPosition, controlPoint1, controlPoint2)
IntervalAction bezierBy(
float
duration, Point endPosition, Point controlPoint1, Point controlPoint2)Parameters
float
duration
Non-null
Point endPosition
Non-null
Point controlPoint1
Non-null
Point controlPoint2
Return Value: IntervalAction
bezierTo(duration, endPosition, controlPoint1, controlPoint2)
IntervalAction bezierTo(
float
duration, Point endPosition, Point controlPoint1, Point controlPoint2)Parameters
float
duration
Non-null
Point endPosition
Non-null
Point controlPoint1
Non-null
Point controlPoint2
Return Value: IntervalAction
callFunction(callback)
InstantAction callFunction(
function
callback)Parameters
Non-null
function
callback
Return Value: InstantAction
delay(duration)
IntervalAction delay(
float
duration)Parameters
float
duration
Return Value: IntervalAction
easeBackIn(action)
EaseAction easeBackIn(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
easeBackInOut(action)
EaseAction easeBackInOut(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
easeBackOut(action)
EaseAction easeBackOut(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
easeBounceIn(action)
EaseAction easeBounceIn(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
easeBounceInOut(action)
EaseAction easeBounceInOut(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
easeBounceOut(action)
EaseAction easeBounceOut(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
easeExponentialIn(action)
EaseAction easeExponentialIn(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
easeExponentialInOut(action)
EaseAction easeExponentialInOut(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
easeExponentialOut(action)
EaseAction easeExponentialOut(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
easeSineIn(action)
EaseAction easeSineIn(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
easeSineInOut(action)
EaseAction easeSineInOut(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
easeSineOut(action)
EaseAction easeSineOut(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: EaseAction
fadeIn(duration)
IntervalAction fadeIn(
float
duration)Parameters
float
duration
Return Value: IntervalAction
fadeOut(duration)
IntervalAction fadeOut(
float
duration)Parameters
float
duration
Return Value: IntervalAction
flipX3D(duration)
GridBaseAction flipX3D(
float
duration)Parameters
float
duration
Return Value: GridBaseAction
flipY3D(duration)
GridBaseAction flipY3D(
float
duration)Parameters
float
duration
Return Value: GridBaseAction
moveBy(duration, deltaX, deltaY)
Parameters
float
duration
float
deltaX
float
deltaY
Return Value: IntervalAction
orbitCamera(duration, radius, deltaRadius, angleZ, deltaAngleZ, angleX, deltaAngleX)
IntervalAction orbitCamera(
float
duration, float
radius, float
deltaRadius, float
angleZ, float
deltaAngleZ, float
angleX, float
deltaAngleX)Parameters
float
duration
float
radius
float
deltaRadius
float
angleZ
float
deltaAngleZ
float
angleX
float
deltaAngleX
Return Value: IntervalAction
repeatForever(action)
Action repeatForever(IntervalAction action)
Parameters
Non-null
IntervalAction action
Return Value: Action
reuseGrid(times)
InstantAction reuseGrid(
int
times)Parameters
int
times
Return Value: InstantAction
ripple3D(pos, radius, waves, amplitude, gridSize, duration)
GridBaseAction ripple3D(Point pos,
float
radius, int
waves, float
amplitude, Size gridSize, float
duration)Parameters
Non-null
Point pos
float
radius
int
waves
float
amplitude
Non-null
Size gridSize
float
duration
Return Value: GridBaseAction
rotateBy(duration, deltaAngle)
Parameters
float
duration
float
deltaAngle
Return Value: IntervalAction
scaleBy(duration, deltaScaleXY)
Parameters
float
duration
float
deltaScaleXY
Return Value: IntervalAction
scaleTo(duration, scaleX, scaleY)
Parameters
float
duration
float
scaleX
float
scaleY
Return Value: IntervalAction
skewBy(duration, deltaSkewX, deltaSkewY)
Parameters
float
duration
float
deltaSkewX
float
deltaSkewY
Return Value: IntervalAction
skewTo(duration, skewX, skewY)
Parameters
float
duration
float
skewX
float
skewY
Return Value: IntervalAction
waves(waves, amplitude, isHorizontal, isVertical, gridSize, duration)
GridBaseAction waves(
int
waves, float
amplitude, bool
isHorizontal, bool
isVertical, Size gridSize, float
duration)Parameters
int
waves
float
amplitude
bool
isHorizontal
bool
isVertical
Non-null
Size gridSize
float
duration