- Source:
Members
(static) EASE: function
- Source:
Ease Speed (0.25, 0.1, 0.25, 1)
Type:
- function
Example
import {EASE} from "scenejs";
Scene.EASE
(static) EASE_IN: function
- Source:
Ease In Speed (0.42, 0, 1, 1)
Type:
- function
Example
import {EASE_IN} from "scenejs";
Scene.EASE_IN
(static) EASE_IN_OUT: function
- Source:
Ease In Out Speed (0.42, 0, 0.58, 1)
Type:
- function
Example
import {EASE_IN_OUT} from "scenejs";
Scene.EASE_IN_OUT
(static) EASE_OUT: function
- Source:
Ease Out Speed (0, 0, 0.58, 1)
Type:
- function
Example
import {EASE_OUT} from "scenejs";
Scene.EASE_OUT
(static) LINEAR: function
- Source:
Linear Speed (0, 0, 1, 1)
Type:
- function
Example
import {LINEAR} from "scenejs";
Scene.LINEAR
(static) STEP_END: function
- Source:
Equivalent to steps(1, end)
Type:
- function
Example
import {STEP_END} from "scenejs";
Scene.STEP_END // steps(1, end)
(static) STEP_START: function
- Source:
Equivalent to steps(1, start)
Type:
- function
Example
import {STEP_START} from "scenejs";
Scene.STEP_START // steps(1, start)
Methods
(static) bezier(x1opt, y1opt, x2opt, y2opt) → {function}
- Source:
Cubic Bezier curve.
Name | Type | Description |
---|---|---|
x1 ? |
number | point1's x |
y1 ? |
number | point1's y |
x2 ? |
number | point2's x |
y2 ? |
number | point2's y |
Example
import {bezier} from "scenejs";
Scene.bezier(0, 0, 1, 1) // LINEAR
Scene.bezier(0.25, 0.1, 0.25, 1) // EASE
Returns:
the curve function
- Type
- function
(static) steps(count, postion) → {function}
- Source:
- See:
Specifies a stepping function
Name | Type | Description |
---|---|---|
count |
number | point1's x |
postion |
"start" | "end" | point1's y |
Example
import {steps} from "scenejs";
Scene.steps(1, "start") // Scene.STEP_START
Scene.steps(1, "end") // Scene.STEP_END
Returns:
the curve function
- Type
- function