A domain specific language for animations
Represents an integer accordingly to the JavaScript definition.
Represents a rectangle.
Represents truthy or falsy values.
Moves a rectangle from its current position to a new position based on offsetX, and offsetY over a duration in miliseconds.
Parameters | Description |
---|---|
rect x | A declared variable of type rect |
int offsetX | A declared variable of type int |
int offsetY | A declared variable of type int |
int duration | A declared variable of type int that must be positive |
Repeats the last played frame over a duration in miliseconds.
Parameters | Description |
---|---|
int duration | A declared variable of type int that must be positive |
Creates a rectangle at (x, y) on the canvas with a given width and length.
Parameters | Description |
---|---|
int xPosition | A declared variable of type int |
int yPosition | A declared variable of type int |
int width | A declared variable of type int |
int length | A declared variable of type int |
Used to play animations in parallel. Currently, only the move built-in function is allowed to be executed within a paral statement. Note, only allows the same property in a single paral to be changed once.
Allows animations to be played a number of times. The loop above is executed twice, where i is first assigned to 1, then 2.
The typical if statement.
Initiated by '#'