@algorisys/tinyfly 0.123.0 → 0.124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/docs/acting.md +8 -3
- package/docs/editor-guide.md +1 -1
- package/docs/examples.md +1 -1
- package/docs/getting-started.md +1 -1
- package/docs/gsap-compat.md +1 -1
- package/docs/llm-guide.md +4 -1
- package/docs/maps.md +2 -2
- package/docs/math.md +1 -1
- package/docs/teaching.md +1 -1
- package/lib/addons/characters.js +277 -275
- package/lib/addons/{cricket-play-BVKhsPUD.js → cricket-play-B8PSBPDd.js} +1082 -1070
- package/lib/addons/sports.js +1 -1
- package/lib/browser/tinyfly.iife.js +14 -14
- package/lib/browser/tinyfly.js +3413 -3401
- package/lib/browser/tinyfly.umd.js +14 -14
- package/lib/types/characters/gaits.d.ts +33 -1
- package/llms-full.txt +21 -13
- package/llms.txt +32 -32
- package/package.json +1 -1
- package/skills/tinyfly/SKILL.md +4 -0
|
@@ -22,7 +22,10 @@ export interface Gait {
|
|
|
22
22
|
elbow: number;
|
|
23
23
|
/** Forearms held bent forward by this much throughout: pumping running arms, sneaking paws (degrees) */
|
|
24
24
|
forearm?: number;
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Upper arms held raised forward by this much (sneaking paws up), degrees
|
|
27
|
+
* from the vertical: swinging arms hang plumb however far the body leans.
|
|
28
|
+
*/
|
|
26
29
|
shoulder?: number;
|
|
27
30
|
/** Forward lean, degrees */
|
|
28
31
|
lean: number;
|
|
@@ -42,6 +45,17 @@ export interface Gait {
|
|
|
42
45
|
tiptoe?: number;
|
|
43
46
|
/** Side-to-side sway of the upper body, degrees (a strut, a waddle) */
|
|
44
47
|
sway?: number;
|
|
48
|
+
/**
|
|
49
|
+
* The bounce peaks with the legs furthest apart (a run's flight) instead of
|
|
50
|
+
* as they pass: the figure is on the ground as the legs pass each other.
|
|
51
|
+
*/
|
|
52
|
+
flight?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Knee give, degrees: the leg carrying the weight bends this much under it
|
|
55
|
+
* (and both stay a little soft), so a run lands and pushes off on bent knees
|
|
56
|
+
* instead of stiff scissors.
|
|
57
|
+
*/
|
|
58
|
+
give?: number;
|
|
45
59
|
}
|
|
46
60
|
/**
|
|
47
61
|
* Ready-made gaits. `walk` matches `walkPose()` exactly.
|
|
@@ -70,6 +84,7 @@ export declare const GAITS: {
|
|
|
70
84
|
bend: number;
|
|
71
85
|
bounce: number;
|
|
72
86
|
squash: number;
|
|
87
|
+
give: number;
|
|
73
88
|
};
|
|
74
89
|
doubleBounce: {
|
|
75
90
|
swing: number;
|
|
@@ -80,6 +95,7 @@ export declare const GAITS: {
|
|
|
80
95
|
bounce: number;
|
|
81
96
|
bounces: number;
|
|
82
97
|
squash: number;
|
|
98
|
+
give: number;
|
|
83
99
|
};
|
|
84
100
|
sneak: {
|
|
85
101
|
swing: number;
|
|
@@ -124,6 +140,8 @@ export declare const GAITS: {
|
|
|
124
140
|
bend: number;
|
|
125
141
|
bounce: number;
|
|
126
142
|
squash: number;
|
|
143
|
+
flight: true;
|
|
144
|
+
give: number;
|
|
127
145
|
};
|
|
128
146
|
shove: {
|
|
129
147
|
swing: number;
|
|
@@ -134,6 +152,20 @@ export declare const GAITS: {
|
|
|
134
152
|
};
|
|
135
153
|
};
|
|
136
154
|
export type GaitName = keyof typeof GAITS;
|
|
155
|
+
/**
|
|
156
|
+
* How high the bounce is at `angle` (radians into the cycle), 0..1: peaking as
|
|
157
|
+
* the legs pass, or with them furthest apart for a gait with `flight`.
|
|
158
|
+
*/
|
|
159
|
+
export declare function gaitBob(spec: Gait, angle: number): number;
|
|
160
|
+
/**
|
|
161
|
+
* Knee give at `lift` (the cycle's cosine, scaled by the stride): degrees
|
|
162
|
+
* each knee bends under the gait's `give`. The left leg carries the weight
|
|
163
|
+
* while `lift` < 0 (the right one is swinging through), the right while > 0.
|
|
164
|
+
*/
|
|
165
|
+
export declare function gaitGive(spec: Gait, lift: number): {
|
|
166
|
+
left: number;
|
|
167
|
+
right: number;
|
|
168
|
+
};
|
|
137
169
|
/** A gait by name or as data; an unknown name is the plain walk. */
|
|
138
170
|
export declare function resolveGait(gait: GaitName | Gait | string | undefined): Gait;
|
|
139
171
|
/**
|
package/llms-full.txt
CHANGED
|
@@ -591,7 +591,7 @@ with a GSAP-style call (durations are in seconds here):
|
|
|
591
591
|
```html
|
|
592
592
|
<div class="box" style="width:60px;height:60px;background:#4a9eff"></div>
|
|
593
593
|
|
|
594
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
594
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.124.0/cdn/tinyfly.iife.js"></script>
|
|
595
595
|
<script>
|
|
596
596
|
tinyfly.to('.box', { x: 200, duration: 1 })
|
|
597
597
|
</script>
|
|
@@ -799,7 +799,7 @@ Without a build step, the all-in-one bundle exposes the same functions on a
|
|
|
799
799
|
global — `tinyfly.to()`, `tinyfly.timeline()` and so on:
|
|
800
800
|
|
|
801
801
|
```html
|
|
802
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
802
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.124.0/cdn/tinyfly.iife.js"></script>
|
|
803
803
|
<script>
|
|
804
804
|
tinyfly.to('.box', { x: 200, duration: 1 })
|
|
805
805
|
</script>
|
|
@@ -2725,7 +2725,7 @@ For simple website embedding without a build system.
|
|
|
2725
2725
|
</html>
|
|
2726
2726
|
```
|
|
2727
2727
|
|
|
2728
|
-
Build the player with `npm run build:player` to generate `lib/player/tinyfly-player.iife.js`, or load it from the CDN: `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
2728
|
+
Build the player with `npm run build:player` to generate `lib/player/tinyfly-player.iife.js`, or load it from the CDN: `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.124.0/cdn/tinyfly-player.iife.js`.
|
|
2729
2729
|
|
|
2730
2730
|
---
|
|
2731
2731
|
|
|
@@ -7079,7 +7079,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
|
|
|
7079
7079
|
**Steps to embed:**
|
|
7080
7080
|
1. Build the player: `npm run build:player`
|
|
7081
7081
|
2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
|
|
7082
|
-
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
7082
|
+
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.124.0/cdn/tinyfly-player.iife.js`
|
|
7083
7083
|
instead; see [Deployment](DEPLOYMENT.md))
|
|
7084
7084
|
3. Copy the generated code into your HTML
|
|
7085
7085
|
4. Adjust the script `src` path if needed
|
|
@@ -8538,7 +8538,10 @@ Write new actions with `defineAction()` (from beats, or as timed pose steps),
|
|
|
8538
8538
|
new gaits with `defineGait()`, and characters with `persona()`. Pass them where
|
|
8539
8539
|
they are used; `persona.describe()` and `capabilities(version, cast)` list them,
|
|
8540
8540
|
and the checks accept them. See "Your own actions, gaits and personas" in
|
|
8541
|
-
`docs/acting.md`.
|
|
8541
|
+
`docs/acting.md`. In a gait, swinging arms hang plumb whatever the `lean` and
|
|
8542
|
+
`bend` (so `shoulder` is from the vertical); a run-like gait wants
|
|
8543
|
+
`flight: true` (airborne with the legs apart, grounded as they pass) and a
|
|
8544
|
+
knee `give` of 20–30 so it lands on a bent knee.
|
|
8542
8545
|
|
|
8543
8546
|
## 2. Ask a target what it can do
|
|
8544
8547
|
|
|
@@ -8717,7 +8720,7 @@ path for all of that:
|
|
|
8717
8720
|
</figure>
|
|
8718
8721
|
|
|
8719
8722
|
<!-- once, anywhere on the page (a site-wide footer is fine) -->
|
|
8720
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
8723
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.124.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
8721
8724
|
```
|
|
8722
8725
|
|
|
8723
8726
|
Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
|
|
@@ -9303,7 +9306,7 @@ lesson's step options (`duration`, `easing`, `delay`).
|
|
|
9303
9306
|
<figcaption>The determinant is the area of the unit square after the map.</figcaption>
|
|
9304
9307
|
</figure>
|
|
9305
9308
|
|
|
9306
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
9309
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.124.0/cdn/tinyfly-math.iife.js" data-tinyfly-auto></script>
|
|
9307
9310
|
```
|
|
9308
9311
|
|
|
9309
9312
|
The figure draws itself into an SVG and redraws from the timeline whenever the
|
|
@@ -10437,8 +10440,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
|
|
|
10437
10440
|
adds to the same `tinyfly` global:
|
|
10438
10441
|
|
|
10439
10442
|
```html
|
|
10440
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
10441
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
10443
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.124.0/cdn/tinyfly.iife.js"></script>
|
|
10444
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.124.0/cdn/tinyfly-maps.iife.js"></script>
|
|
10442
10445
|
```
|
|
10443
10446
|
|
|
10444
10447
|
It is a separate script because the offline world map it carries adds about
|
|
@@ -11795,7 +11798,8 @@ shoots up and curls on landing. At 0 the figure is drawn exactly as before.
|
|
|
11795
11798
|
How a figure walks is data: `GAITS` has `walk` (the plain walk, the same as
|
|
11796
11799
|
`walkPose()`), `bouncy`, `doubleBounce` (two bobs a step), `sneak` (tiptoe in
|
|
11797
11800
|
a crouch, paws up), `strut` (chest out), `tired` (slumped and dragging) and
|
|
11798
|
-
`run` (knees high, arms pumping,
|
|
11801
|
+
`run` (knees high, arms pumping, in the air with the legs apart and landing
|
|
11802
|
+
on a bent knee as they pass).
|
|
11799
11803
|
|
|
11800
11804
|
```js
|
|
11801
11805
|
gaitPose('sneak', phase, base) // a pose at a phase of the cycle
|
|
@@ -11804,8 +11808,12 @@ gaitStrideLength('sneak', height) // ground per cycle, so feet stay plante
|
|
|
11804
11808
|
|
|
11805
11809
|
A gait is a handful of numbers (`swing`, `knee`, `arm`, `elbow`, `forearm`,
|
|
11806
11810
|
`shoulder`, `lean`, `bend`, `headTilt`, `bounce`, `bounces`, `squash`,
|
|
11807
|
-
`crouch`, `tiptoe`, `sway`), so you can write your own and
|
|
11808
|
-
a name.
|
|
11811
|
+
`crouch`, `tiptoe`, `sway`, `flight`, `give`), so you can write your own and
|
|
11812
|
+
pass it in place of a name. `flight: true` puts the bounce's peak where the
|
|
11813
|
+
legs are furthest apart (a run) instead of where they pass (a walk), and
|
|
11814
|
+
`give` (degrees) bends the knee of the leg carrying the weight. Swinging arms
|
|
11815
|
+
hang plumb however far the gait leans, so `shoulder` (paws held up) is
|
|
11816
|
+
measured from the vertical. On a `stickFigureTarget` the `gait` prop picks one, and a string track
|
|
11809
11817
|
switches it: `{ property: 'gait', keyframes: [{ time: 0, value: 'walk' }, { time: 3000, value: 'run' }] }`.
|
|
11810
11818
|
|
|
11811
11819
|
## Lip-sync
|
|
@@ -15895,7 +15903,7 @@ magnet.addEventListener('pointerleave', () => {
|
|
|
15895
15903
|
|
|
15896
15904
|
<!-- capabilities: generated from the library -->
|
|
15897
15905
|
|
|
15898
|
-
# tinyfly capabilities (v0.
|
|
15906
|
+
# tinyfly capabilities (v0.124.0)
|
|
15899
15907
|
|
|
15900
15908
|
Generated from the library itself: every name below is accepted, and names not listed are rejected (beat scripts, code panels and `checkTracks` say which name was probably meant).
|
|
15901
15909
|
|
package/llms.txt
CHANGED
|
@@ -13,50 +13,50 @@ Key facts:
|
|
|
13
13
|
- For language models: read the capability catalog first (`npx @algorisys/tinyfly capabilities`, or the end of llms-full.txt). It is generated from the library, so every name in it (poses, expressions, gags, gaits, beat actions, canvas properties, code-panel edits) is accepted, and names not in it are rejected with the name probably meant. Check beat scripts with `npx @algorisys/tinyfly check beats.json`, tracks with `checkTracks(tracks, targets)`, and ask any target what it animates with `describeTarget(target)`. The npm package ships `docs/`, `llms.txt`, `llms-full.txt` and an agent skill (`skills/tinyfly/SKILL.md`); `docs/llm-guide.md` describes the workflow.
|
|
14
14
|
- Source: https://github.com/algorisys-oss/tinyfly. License: MIT.
|
|
15
15
|
|
|
16
|
-
All documentation and the interactive course in a single file: [llms-full.txt](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
16
|
+
All documentation and the interactive course in a single file: [llms-full.txt](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/llms-full.txt)
|
|
17
17
|
|
|
18
18
|
## Start here
|
|
19
19
|
|
|
20
|
-
- [Getting Started](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
21
|
-
- [GSAP Compatibility](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
22
|
-
- [Code Examples](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
23
|
-
- [Building Animations with an LLM](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
20
|
+
- [Getting Started](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/getting-started.md): What tinyfly is, making a first animation in the editor, and using it from code, a script tag or the CDN.
|
|
21
|
+
- [GSAP Compatibility](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/gsap-compat.md): The GSAP-style API (`live.to`, `tf.timeline`): supported vars, motion paths, morphSVG, text, inertia, Draggable, Flip, and where it differs from GSAP.
|
|
22
|
+
- [Code Examples](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/examples.md): Recipes with the engine API: fades, loops, colour and bezier easing, loading JSON, canvas and SVG rendering, multi-scene sequences, motion paths and script-tag embeds; a festive garba/dandiya scene with partner contacts, circle travel and spins, also rendered to video.
|
|
23
|
+
- [Building Animations with an LLM](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/llm-guide.md): For assistants and the people setting them up: read the capability catalog (`tinyfly capabilities`), ask targets what they animate (`describeTarget`), check beats and tracks with did-you-mean errors (`tinyfly check`, `checkTracks`), render stills to look at, and the agent skill shipped in the package.
|
|
24
24
|
|
|
25
25
|
## Reference
|
|
26
26
|
|
|
27
|
-
- [API Reference](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
28
|
-
- [File Format](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
27
|
+
- [API Reference](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/api-reference.md): Every public engine, player and adapter API: Timeline, tracks, keyframes, easing, drivers, serialization and exports.
|
|
28
|
+
- [File Format](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/file-format.md): The JSON animation format: timelines, every track kind, keyframes, easing and the project file — for generating or consuming animations.
|
|
29
29
|
|
|
30
30
|
## Editor features
|
|
31
31
|
|
|
32
|
-
- [Editor Guide](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
33
|
-
- [Shape Morphing](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
34
|
-
- [Pen Tool](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
35
|
-
- [Polygons & Stars](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
36
|
-
- [Grid & Snapping](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
37
|
-
- [Onion Skinning](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
38
|
-
- [Sprite-sheet Export](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
32
|
+
- [Editor Guide](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/editor-guide.md): Every panel and feature of the visual editor, from elements and keyframes to text and inertia tracks, preview and export.
|
|
33
|
+
- [Shape Morphing](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/shape-morph.md): Tweening one path into another, including shapes with different point counts and several subpaths.
|
|
34
|
+
- [Pen Tool](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/pen-tool.md): Drawing custom paths point by point with straight segments and bezier curves.
|
|
35
|
+
- [Polygons & Stars](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/polygon-star.md): Parametric polygon and star shapes that stay editable while animating like any path.
|
|
36
|
+
- [Grid & Snapping](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/grid-and-snapping.md): The grid overlay, snapping to grid, elements and artboard centre, and alignment guides.
|
|
37
|
+
- [Onion Skinning](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/onion-skinning.md): Ghost frames before and after the playhead for judging arcs and easing.
|
|
38
|
+
- [Sprite-sheet Export](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/sprite-sheet-export.md): Exporting frames as a PNG grid plus JSON metadata for game engines and canvas players.
|
|
39
39
|
|
|
40
40
|
## Guides
|
|
41
41
|
|
|
42
|
-
- [Cricket Stories](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
43
|
-
- [Scroll Animation](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
44
|
-
- [Props: Everyday Objects with Behaviours](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
45
|
-
- [Teaching Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
46
|
-
- [Maths Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
47
|
-
- [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
48
|
-
- [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
49
|
-
- [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
50
|
-
- [Noir and Detective Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
51
|
-
- [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
52
|
-
- [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
53
|
-
- [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
54
|
-
- [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
55
|
-
- [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
56
|
-
- [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
57
|
-
- [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
42
|
+
- [Cricket Stories](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/cricket.md): Reusable sports APIs, organic adult/child players, sixteen cricket plays, Test/ODI/T20 facts, contact-keyed JSON, captions, headless video and a 360° ground camera.
|
|
43
|
+
- [Scroll Animation](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/scroll-animation.md): Scroll-driven and play-when-visible animation with ScrollDriver and VisibilityDriver.
|
|
44
|
+
- [Props: Everyday Objects with Behaviours](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/props.md): Cars, trucks, buses, tractors, carts, train carriages, bikes, motorbikes, trees, houses, a helicopter and a plane: 3D rigs drawn with the characters’ pens (clean, pencil) that turn toward the camera, with beats acted through the 12 principles (anticipation, squash and stretch, follow-through, an exaggeration dial), wheels that roll exactly, effects, and figures riding them.
|
|
45
|
+
- [Teaching Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/teaching.md): Step-through explanatory figures: markers, captions in several languages, the teaching player, step controls, one-script declarative embeds, tinyfly/teach diagram primitives, and validate / render for build pipelines.
|
|
46
|
+
- [Maths Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/math.md): tinyfly/math: figures as JSON (grids a matrix warps, vectors, function plots, polygons, eigenlines, TeX labels and equations that rewrite step by step), animated by plain tracks, played in lesson-page embeds, explorables and videos from one layout; a built-in TeX subset and ready linear algebra figures.
|
|
47
|
+
- [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/video-rendering.md): Rendering a scene to MP4 without a browser: `tinyfly video`, custom canvas targets drawn by code, timing from narration and recorded voice-over, the stick-figure character, SRT/WebVTT captions, stills, porting Cairo scripts, and a benchmark against pycairo.
|
|
48
|
+
- [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/maps.md): Maps that animate: a camera that flies in to a city, pins that drop in, routes that draw themselves while a marker travels them, on OpenStreetMap tiles or an offline world outline (also in pencil), in the browser and in headless video.
|
|
49
|
+
- [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/cartoon-hands.md): A hand you can pose: a palm and five fingers in 3D, posed by numbers (curls, thumb, spread, wrist turn), ready-made shapes from a fist to a pencil grip, left and right, four or five fingers, in clean, pencil and silhouette looks; the animator's hand and character gloves are built on it.
|
|
50
|
+
- [Noir and Detective Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/noir-detective.md): A canvas kit for detective stories: rain in a window, light through blinds, darkness with torch beams and holes, glow, vignette, lightning and a flickering bulb; the red clue magnifier, an evidence folder, a clock and time chip, a freeze-frame suspect name card, a typed narration box and speech bubbles; and a case board as data (pinned photo and note cards, red string, marker cross-outs, strikes, scribble-outs and rings drawn on over time, with the marker nib for a hand). Deterministic from time; text and fonts are yours.
|
|
51
|
+
- [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/character-appearance.md): Hair (34 styles), facial hair (20), glasses, hats and ears for the v2 character as plain data on the head, so they turn with it through all eight views; builds (child, tall, short…), a recurring cast (castMember), expressions with blush, tears and sweat, everyday poses, held items (mug, phone, bags, umbrella, parcel) and two characters’ hands meeting (meetHands: handshake, high five, hand-over).
|
|
52
|
+
- [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/acting.md): actTracks(): the same key poses, acted: anticipation, overshoot and settle, overlapping joints, eyes that lead and blink, moving holds and jump squash, in full, snappy or limited styles; gags as data (take, double take, wind-up); a line of action (bend); gaits with personality; lip-sync from text (Latin and Devanagari); beat scripts compiled to acted tracks; your own actions (defineAction), gaits (defineGait) and personas (persona()); acting on code (codePanel lines and words as anchors: leap onto a line, point at it, swipe it away wiped, knocked off or blurred; grab, throw, kick, carry and drop words, push them along their line, write new text in by hand; ride a line as gaps close); camera shots (push in, cut, shake, follow); the cartoon zip; speed lines, dust puffs and impact stars; drawing on twos (a timeline setting); acting, gags, walks and lines in the editor.
|
|
53
|
+
- [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/dance.md): The stick figure dances disco, hip hop, breaking, jazz, K-pop, Bollywood, Bhangra, Bharatanatyam (with mudras), the Charleston, tap and popping, and does flips, leaps and splits; native v2 garba (two/three clap) and dandiya add body-local routines, circle formations, world foot plants, paired stick-tip contacts and signed spins; JSON bakes, timing, contact limits and editor menus.
|
|
54
|
+
- [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/scene-3d.md): @algorisys/tinyfly/scene-3d: cameras, lights and meshes as JSON, in metres, animated by tracks at <scene>/<object> (cuts with activeCamera), drawn on a 2D canvas with flat, smooth or toon shading, ink outlines and fog, in browsers, Workers and Node (MP4 with tinyfly video); v2 characters in pen or solid looks, scripted native dances, timed signed spins and circle formations with foot contacts.
|
|
55
|
+
- [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/3d-rotations.md): CSS-style 3D for flat elements in every renderer (rotateX, rotateY, z, perspective, backface visibility; true perspective on Canvas and WebGL, matching CSS within a pixel), one documented transform order, the editor's 3D fields; smooth quaternion rotations with interpolation: "slerp"; the vec3, quat and mat4 helpers; format version 2.
|
|
56
|
+
- [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/extending.md): Writing a render adapter, animating any object with live and the ticker, custom and parametric eases, stagger offsets, adding a track kind, and contributing gallery examples.
|
|
57
|
+
- [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
|
|
58
58
|
|
|
59
59
|
## Optional
|
|
60
60
|
|
|
61
|
-
- [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
62
|
-
- [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
61
|
+
- [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/README.md): Feature overview, project layout and development setup.
|
|
62
|
+
- [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.124.0/release-notes/README.md): What changed in each version.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algorisys/tinyfly",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.124.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Lightweight, API-driven animation engine and editor. The engine is framework-agnostic and runs in browsers, Web Workers, and Node.",
|
|
6
6
|
"license": "MIT",
|
package/skills/tinyfly/SKILL.md
CHANGED
|
@@ -143,6 +143,10 @@ names.
|
|
|
143
143
|
- For recurring characters, make a `persona()` (look, acting, gait, mood,
|
|
144
144
|
stance) and use `persona.script()`; for a move the catalog lacks, write it
|
|
145
145
|
with `defineAction()` rather than hand-keying joints in many places.
|
|
146
|
+
- A custom run gait (`defineGait`) needs `flight: true` (airborne at the
|
|
147
|
+
split, grounded as the legs pass) and `give: 20–30` (a bent landing knee),
|
|
148
|
+
or it bounces at the wrong moment on stiff legs. Gait arms hang plumb, so
|
|
149
|
+
`shoulder` is measured from the vertical, not from the leaning chest.
|
|
146
150
|
- Soft cartoon bodies: `figure: 'organic'` defaults to
|
|
147
151
|
`face.projection: 'volume'` for head turns with hair occlusion, a flatter
|
|
148
152
|
profile face and a nose projecting from above the mouth;
|