jamiship
v0.1.6
Published
JamiShip is a lightweight JavaScript Animation Engine to manipulate movable components on HTML canvas. The engine provides as below: 1. animation engine which control frame of animation * We can set frame option to ( asynchronized fixed time (timer) / syn
Downloads
1
Readme
JamiShip
JamiShip is a lightweight JavaScript Animation Engine to manipulate movable components on HTML canvas. The engine provides as below:
- animation engine which control frame of animation
- We can set frame option to ( asynchronized fixed time (timer) / synchronized frame (turn) )
- custom operation can be run at each frame by inserting it to the engine
- JS-based custom operation generator
- We can code component's behavior by javascript function. We can use three functions
- setup(): run before animation starts
- init(): run for initial frame when animation starts
- loop(): run for each frame when animation starts
- We can code component's behavior by javascript function. We can use three functions
- Component Management on engine
- component objects are on control of animation engine
- syntax of components are also given in
class_example
directory - you can also refer to our demo code to use this module
- logger for animation result
- Presquities: we follow react hook's state structure on logger. We need an
[state, statesetter]
to initialize logger - You can write log on engine runtime, component methods
- Presquities: we follow react hook's state structure on logger. We need an
Examples
A demo using JamiShip engine [ Repository ]