Package-level declarations
Types
Join multiple eases together into a single compound ease. Imagine an Ease as a graph which goes from (0,0) to (1,1), a linear Ease would be a straight line, and a EaseInOut Ease would be a slanted S shape. A CompoundEase is a set of these graphs all joined together. Each section is an ease which goes from 0 to 1, but the CompoundEase, can change the destination for all but the last Ease. For example, if we joined two LinearEases together, where the first destination was 0.5, then it would be identical to a single LinearEase. However, if we made the first destination 0.1, then the first part of the animation would change slowly (as the gradient is shallow), and the second half would be quick (going from 0.1 to 1 in the same time as the first half took to go from 0 to 0.1).
An ease is a function which takes an input from 0..1 and returns a value, which is usually in the range 0..1. The simplest is LinearEase, which is a straight line from (0,0) to (1,1) :
The original ease is mirrored, and then squashed to fit into the range 0..1. e.g. A LinearEase will be transformed from a straight line to an up-slope followed by a down-slope. If we play the ease, it starts a 0, reaches 1 at t=0.5
then returns to 0 at t=1
.
A Shader program which blits axis-aligned rectangular area of a Texture. There are no transformation matrices - the API uses to -1 to 1 coordinates for the destination and 0..1 for the texture's coordinates.
Properties
@Custom annotations are not supported in Javascript, but game-code should still include them, and implement the method Customisable.customProperties