@algorisys/tinyfly 0.104.0 → 0.106.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 +14 -4
- package/docs/api-reference.md +19 -0
- package/docs/character-appearance.md +65 -1
- package/docs/editor-guide.md +5 -2
- package/docs/examples.md +20 -1
- package/docs/getting-started.md +1 -1
- package/docs/gsap-compat.md +1 -1
- package/docs/llm-guide.md +21 -0
- package/docs/maps.md +2 -2
- package/docs/teaching.md +1 -1
- package/lib/addons/characters.js +3055 -2907
- package/lib/browser/tinyfly.iife.js +13 -13
- package/lib/browser/tinyfly.js +4347 -4199
- package/lib/browser/tinyfly.umd.js +13 -13
- package/lib/types/characters/capabilities.d.ts +1 -0
- package/lib/types/characters/cast.d.ts +326 -2
- package/lib/types/characters/head/face.d.ts +10 -0
- package/lib/types/characters/head/hair.d.ts +45 -0
- package/lib/types/characters/head/head-shape.d.ts +7 -0
- package/lib/types/characters/head/index.d.ts +1 -1
- package/lib/types/characters/index.d.ts +1 -1
- package/lib/types/characters/stick-figure.d.ts +2 -0
- package/llms-full.txt +141 -12
- package/llms.txt +29 -29
- package/package.json +1 -1
- package/skills/tinyfly/SKILL.md +14 -0
package/llms-full.txt
CHANGED
|
@@ -204,7 +204,7 @@ with a GSAP-style call (durations are in seconds here):
|
|
|
204
204
|
```html
|
|
205
205
|
<div class="box" style="width:60px;height:60px;background:#4a9eff"></div>
|
|
206
206
|
|
|
207
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
207
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.106.0/cdn/tinyfly.iife.js"></script>
|
|
208
208
|
<script>
|
|
209
209
|
tinyfly.to('.box', { x: 200, duration: 1 })
|
|
210
210
|
</script>
|
|
@@ -412,7 +412,7 @@ Without a build step, the all-in-one bundle exposes the same functions on a
|
|
|
412
412
|
global — `tinyfly.to()`, `tinyfly.timeline()` and so on:
|
|
413
413
|
|
|
414
414
|
```html
|
|
415
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
415
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.106.0/cdn/tinyfly.iife.js"></script>
|
|
416
416
|
<script>
|
|
417
417
|
tinyfly.to('.box', { x: 200, duration: 1 })
|
|
418
418
|
</script>
|
|
@@ -1586,6 +1586,25 @@ quickPlay({
|
|
|
1586
1586
|
|
|
1587
1587
|
Practical examples for common animation patterns using the tinyfly API.
|
|
1588
1588
|
|
|
1589
|
+
## Open examples full page
|
|
1590
|
+
|
|
1591
|
+
Click **Open full page** on any live, timeline or editable example card,
|
|
1592
|
+
including its individual example page. It opens a separate tab at the
|
|
1593
|
+
shareable URL `/examples/<id>/full`. The example plays immediately, with
|
|
1594
|
+
its own controls and scrolling in a full viewport; gallery panels and code
|
|
1595
|
+
sections remain in the original tab. **Copy code** exports the same standalone
|
|
1596
|
+
HTML. [Try the manga example](https://tinyfly.app/examples/live-manga-cast/full).
|
|
1597
|
+
|
|
1598
|
+
## Young Adult Manga Cast
|
|
1599
|
+
|
|
1600
|
+
[Young Adult Manga Cast](https://tinyfly.app/examples/live-manga-cast) shows
|
|
1601
|
+
four original presets with angular jaws, tapered chins, narrower eyes and
|
|
1602
|
+
pointed hair. Change hair, face shape, jaw/chin widths, eye height and expression,
|
|
1603
|
+
view the whole body or close-up, and enable a complete turnaround. The controls
|
|
1604
|
+
use the public `MANGA_CAST`, `castMember` and face/hair options; Copy as page
|
|
1605
|
+
exports the same working example. The original Stick Figure example also
|
|
1606
|
+
has an arm-length slider.
|
|
1607
|
+
|
|
1589
1608
|
## Colour Anime Cast
|
|
1590
1609
|
|
|
1591
1610
|
Open [Colour Anime Cast](https://tinyfly.app/examples/live-anime-cast) to inspect
|
|
@@ -2308,7 +2327,7 @@ For simple website embedding without a build system.
|
|
|
2308
2327
|
</html>
|
|
2309
2328
|
```
|
|
2310
2329
|
|
|
2311
|
-
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.
|
|
2330
|
+
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.106.0/cdn/tinyfly-player.iife.js`.
|
|
2312
2331
|
|
|
2313
2332
|
---
|
|
2314
2333
|
|
|
@@ -2387,6 +2406,7 @@ Complete reference for the tinyfly animation engine, player, and adapters.
|
|
|
2387
2406
|
|
|
2388
2407
|
## Table of Contents
|
|
2389
2408
|
|
|
2409
|
+
- [Character Cast and Proportions](#character-cast-and-proportions)
|
|
2390
2410
|
- [Core Types](#core-types)
|
|
2391
2411
|
- [Timeline](#timeline)
|
|
2392
2412
|
- [Track](#track)
|
|
@@ -4798,6 +4818,24 @@ another is running takes over each element from where it appears.
|
|
|
4798
4818
|
`Stage` and `quickPlay`, with `to`, `from`, `fromTo`, `set`, `timeline`,
|
|
4799
4819
|
`ticker` and `splitText` at the top level bound to `live`.
|
|
4800
4820
|
|
|
4821
|
+
## Character Cast and Proportions
|
|
4822
|
+
|
|
4823
|
+
Import these APIs from `@algorisys/tinyfly/characters` (or the browser bundle's
|
|
4824
|
+
`tinyfly` global).
|
|
4825
|
+
|
|
4826
|
+
| API | Purpose |
|
|
4827
|
+
|---|---|
|
|
4828
|
+
| `ANIME_CAST`, `MANGA_CAST`, `CHARACTER_CAST` | Editable character option presets and their labels, groups and height scales |
|
|
4829
|
+
| `castMember(name, height, changes)` | Resolve a preset, scaled to the adult height, with optional option overrides |
|
|
4830
|
+
| `character(options)` | Create the native human rig with editable face, hair, build and clothing |
|
|
4831
|
+
| `FaceOptions` | Simple/anime style, iris, lashes, age creases; round/angular shape, jaw/chin widths, eye scale/aspect, nose and mouth extras |
|
|
4832
|
+
| `HairSpec`, `HairSpike` | Editable hair fields and pointed tufts that follow the head's turn |
|
|
4833
|
+
| `StickStyle.armLength` | Positive finite multiplier of both original stick-figure arm bones, default 1; used by draw, target and joints APIs |
|
|
4834
|
+
|
|
4835
|
+
See [Character Appearance](character-appearance.md#young-adult-manga-cast)
|
|
4836
|
+
for parameter ranges, examples and JSON semantics. `AnimeCastName` and
|
|
4837
|
+
`MangaCastName` type the preset names.
|
|
4838
|
+
|
|
4801
4839
|
---
|
|
4802
4840
|
|
|
4803
4841
|
<!-- docs/file-format.md -->
|
|
@@ -5671,7 +5709,10 @@ its box; resize the box to change its height. In the property panel:
|
|
|
5671
5709
|
**Iris colour** and **Eyelashes** toggle; **Age creases** adds subtle facial
|
|
5672
5710
|
lines. The Cast picker includes eight colour anime presets for boys, girls,
|
|
5673
5711
|
young adults, adults and older adults. The 3D Scene character's Cast picker
|
|
5674
|
-
uses the same presets.
|
|
5712
|
+
uses the same presets. The manga presets add angular faces and pointed hair;
|
|
5713
|
+
**Face shape**, **Jaw width**, **Chin width**, **Eye size** and **Eye height**
|
|
5714
|
+
edit those features. **Nose** and **Line width** control the remaining details.
|
|
5715
|
+
Picking another hairstyle keeps the face and clears custom hair overrides.
|
|
5675
5716
|
|
|
5676
5717
|
To animate a character, pick a view, a pose and a face, and click
|
|
5677
5718
|
**◆ Keyframe pose at playhead**. Move the playhead, pick the next pose, and
|
|
@@ -6639,7 +6680,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
|
|
|
6639
6680
|
**Steps to embed:**
|
|
6640
6681
|
1. Build the player: `npm run build:player`
|
|
6641
6682
|
2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
|
|
6642
|
-
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
6683
|
+
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.106.0/cdn/tinyfly-player.iife.js`
|
|
6643
6684
|
instead; see [Deployment](DEPLOYMENT.md))
|
|
6644
6685
|
3. Copy the generated code into your HTML
|
|
6645
6686
|
4. Adjust the script `src` path if needed
|
|
@@ -8054,6 +8095,27 @@ When writing tinyfly animations, follow node_modules/@algorisys/tinyfly/skills/t
|
|
|
8054
8095
|
**A chat window**: paste the output of `npx @algorisys/tinyfly capabilities`,
|
|
8055
8096
|
or link `llms-full.txt`.
|
|
8056
8097
|
|
|
8098
|
+
### Manga faces and original stick-figure proportions
|
|
8099
|
+
|
|
8100
|
+
`MANGA_CAST` supplies four original young adult presets through `castMember`.
|
|
8101
|
+
`face.shape: 'angular'`, `jawWidth` and `chinWidth` shape the projected pen head;
|
|
8102
|
+
`eyeScale` and `eyeAspect` shape anime eyes. Hair and outfit overrides remain
|
|
8103
|
+
independent; spread the preset's face when changing one nested field.
|
|
8104
|
+
`mangaSpikes` / `mangaSweep` contain editable `hair.spikes` tufts as JSON
|
|
8105
|
+
(`around` degrees, `up` scalp height, `length` and `width` head radii).
|
|
8106
|
+
The solid mesh head and contact bounds retain their existing geometry.
|
|
8107
|
+
For the original stick figure use `style.armLength` (positive finite, default 1)
|
|
8108
|
+
in `drawStickFigure`, `stickFigureJoints` or `stickFigureTarget`; it changes
|
|
8109
|
+
both arm segments, with hands and the rest of the body keeping their sizes.
|
|
8110
|
+
|
|
8111
|
+
### Full-page example previews
|
|
8112
|
+
|
|
8113
|
+
Catalog cards offer **Open full page** at `/examples/<id>/full`: a shareable
|
|
8114
|
+
new-tab player using the same standalone HTML as Copy code. Live demos,
|
|
8115
|
+
timeline examples and editable sample scenes play with their own controls
|
|
8116
|
+
and scrolling, without the gallery panels. Use these URLs when sharing an
|
|
8117
|
+
example for visual review.
|
|
8118
|
+
|
|
8057
8119
|
---
|
|
8058
8120
|
|
|
8059
8121
|
<!-- docs/teaching.md -->
|
|
@@ -8085,7 +8147,7 @@ path for all of that:
|
|
|
8085
8147
|
</figure>
|
|
8086
8148
|
|
|
8087
8149
|
<!-- once, anywhere on the page (a site-wide footer is fine) -->
|
|
8088
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
8150
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.106.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
8089
8151
|
```
|
|
8090
8152
|
|
|
8091
8153
|
Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
|
|
@@ -9357,8 +9419,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
|
|
|
9357
9419
|
adds to the same `tinyfly` global:
|
|
9358
9420
|
|
|
9359
9421
|
```html
|
|
9360
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
9361
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
9422
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.106.0/cdn/tinyfly.iife.js"></script>
|
|
9423
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.106.0/cdn/tinyfly-maps.iife.js"></script>
|
|
9362
9424
|
```
|
|
9363
9425
|
|
|
9364
9426
|
It is a separate script because the offline world map it carries adds about
|
|
@@ -9815,7 +9877,7 @@ cast member at an adult `height` (each stands at their own scale of it). The
|
|
|
9815
9877
|
family: `boy`, `girl`, `youngMan`, `youngWoman`, `man`, `woman`, `grandpa`,
|
|
9816
9878
|
`grandma`; at work (from the occupations sheet): `doctor`, `cook`, `builder`,
|
|
9817
9879
|
`courier`, `teacher`, `farmer`. `CHARACTER_CAST` has each one's `label`,
|
|
9818
|
-
`group` (`family`, `work` or `
|
|
9880
|
+
`group` (`family`, `work`, `anime` or `manga`), `scale` and `options`.
|
|
9819
9881
|
|
|
9820
9882
|
```js
|
|
9821
9883
|
const family = ['man', 'woman', 'girl', 'grandma'].map((name) => character(castMember(name, 280)))
|
|
@@ -9858,6 +9920,70 @@ face close-ups and a complete turnaround. Both the Character and 3D Scene
|
|
|
9858
9920
|
editors offer these presets in their Cast picker. The Character editor also
|
|
9859
9921
|
has Face style, Iris colour, Eyelashes and Age creases controls, saved in project JSON.
|
|
9860
9922
|
|
|
9923
|
+
### Young adult manga cast
|
|
9924
|
+
|
|
9925
|
+
`MANGA_CAST` supplies four original archetypes: `mangaYoungMan`,
|
|
9926
|
+
`mangaYoungWoman`, `mangaRival`, and `mangaHeroine`. They also belong to
|
|
9927
|
+
`CHARACTER_CAST` and use the shared expression, pose, dance and turnaround APIs.
|
|
9928
|
+
These presets use lighter line widths, angular jaws and smaller, narrower eyes.
|
|
9929
|
+
Hair, skin, clothing and every face option remain editable.
|
|
9930
|
+
|
|
9931
|
+
```js
|
|
9932
|
+
const preset = MANGA_CAST.mangaYoungMan.options
|
|
9933
|
+
const hero = character(castMember('mangaYoungMan', 300, {
|
|
9934
|
+
hair: { style: 'bob', color: '#446688' },
|
|
9935
|
+
face: { ...preset.face, jawWidth: 0.8, chinWidth: 0.12, iris: '#987546' }
|
|
9936
|
+
}))
|
|
9937
|
+
```
|
|
9938
|
+
|
|
9939
|
+
`face.shape: 'angular'` changes the pen character's head outline into a
|
|
9940
|
+
projected 3D tapered head, following yaw, nod and roll. `jawWidth` is the
|
|
9941
|
+
half-width at the jaw (clamped to 0.55–0.95 head radii, default 0.74);
|
|
9942
|
+
`chinWidth` is the half-width just above the chin (0.03–0.35, default 0.14).
|
|
9943
|
+
`shape: 'round'` is the original default. The underlying rig and contact
|
|
9944
|
+
geometry retain their original head bounds; solid mesh characters retain
|
|
9945
|
+
their existing mesh head.
|
|
9946
|
+
|
|
9947
|
+
Anime `eyeScale` changes eye size (0.5–1.2, default 1), and `eyeAspect`
|
|
9948
|
+
changes eye height relative to width (0.45–1.2, default 1). Smaller aspect
|
|
9949
|
+
values produce narrower manga eyes; expressions, blink, lids and gaze still
|
|
9950
|
+
animate them. These face options are independent of the hairstyle.
|
|
9951
|
+
|
|
9952
|
+
`mangaSpikes` and `mangaSweep` are editable hair presets with pointed 3D
|
|
9953
|
+
tufts. A `hair.spikes` array contains `{ around, up, length, width }`:
|
|
9954
|
+
`around` is degrees from the front, `up` the scalp height from -1 to 1,
|
|
9955
|
+
and `length` and `width` are tuft length and base radius in head radii.
|
|
9956
|
+
Use `spikes: []` to remove the tufts, or choose any other hairstyle.
|
|
9957
|
+
The editor retains custom hair fields in saved JSON; picking a different
|
|
9958
|
+
hairstyle clears the preceding preset's hair overrides.
|
|
9959
|
+
|
|
9960
|
+
The [Young Adult Manga Cast](https://tinyfly.app/examples/live-manga-cast)
|
|
9961
|
+
example lets you change hair, jaw, chin and eye height while expressions and
|
|
9962
|
+
turnarounds animate. The Character editor offers matching face controls,
|
|
9963
|
+
nose and line width; both editor Cast pickers include these presets.
|
|
9964
|
+
|
|
9965
|
+
### Original stick-figure arm proportions
|
|
9966
|
+
|
|
9967
|
+
The original stick-figure API now accepts `StickStyle.armLength`: a positive
|
|
9968
|
+
finite multiplier, default 1, of both upper-arm and forearm lengths.
|
|
9969
|
+
Hands keep their size; torso, shoulder positions, legs and head stay unchanged.
|
|
9970
|
+
It composes with squash/stretch, mirroring, wrist bends and rubber limbs.
|
|
9971
|
+
This is an appearance option, rather than a pose track.
|
|
9972
|
+
|
|
9973
|
+
```js
|
|
9974
|
+
const person = stickFigureTarget({
|
|
9975
|
+
x: 200, y: 400,
|
|
9976
|
+
style: { height: 300, armLength: 0.85 }
|
|
9977
|
+
})
|
|
9978
|
+
const joints = stickFigureJoints(POSES.wave, { height: 300, armLength: 1.2 })
|
|
9979
|
+
drawStickFigure(ctx, POSES.wave, { height: 300, armLength: 1.2 })
|
|
9980
|
+
```
|
|
9981
|
+
|
|
9982
|
+
`stickFigureAt` and costume/prop drawing hooks see the adjusted wrists.
|
|
9983
|
+
The [Stick Figure example](https://tinyfly.app/examples/live-stick-figure)
|
|
9984
|
+
includes an arm-length slider. The newer human rig keeps its existing
|
|
9985
|
+
`CharacterOptions.armLength` setting.
|
|
9986
|
+
|
|
9861
9987
|
## Hugs, help-ups and everyday cycles
|
|
9862
9988
|
|
|
9863
9989
|
Two people, more than hands: `embrace(a, b)` is a hug. Both turn toward each
|
|
@@ -14272,7 +14398,7 @@ magnet.addEventListener('pointerleave', () => {
|
|
|
14272
14398
|
|
|
14273
14399
|
<!-- capabilities: generated from the library -->
|
|
14274
14400
|
|
|
14275
|
-
# tinyfly capabilities (v0.
|
|
14401
|
+
# tinyfly capabilities (v0.106.0)
|
|
14276
14402
|
|
|
14277
14403
|
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).
|
|
14278
14404
|
|
|
@@ -14351,6 +14477,8 @@ Types: `rect`, `circle`, `text`, `line`, `path`, `image`, `custom`. `describeTar
|
|
|
14351
14477
|
|
|
14352
14478
|
`stickFigureTarget({ x, y, style })` is a custom canvas target; its props are the pose fields and the props below. Pose it with tracks (`poseTracks`), or write beats (`scriptTracks`).
|
|
14353
14479
|
|
|
14480
|
+
Style proportions: `headSize` is a fraction of height; `armLength` multiplies both upper arm and forearm lengths (default 1, positive finite). Hands, shoulders, torso and legs retain their sizes.
|
|
14481
|
+
|
|
14354
14482
|
### Pose fields
|
|
14355
14483
|
|
|
14356
14484
|
| Field | Unit | What it does |
|
|
@@ -14554,13 +14682,14 @@ Native dances: `garba`, `garbaThreeClap`, `dandiya`; `humanDanceFrame(style, bea
|
|
|
14554
14682
|
Appearance options of `character({ … })`, all plain data that turns with the head (see docs/character-appearance.md):
|
|
14555
14683
|
|
|
14556
14684
|
- `build`: `standard`, `slim`, `tall`, `short`, `broad`, `curvy`, `stocky`, `kid`, `child`, `toddler`
|
|
14557
|
-
- `hair`: `bald`, `buzzCut`, `crewCut`, `short`, `sidePart`, `sideSwept`, `slickBack`, `quiff`, `spiky`, `undercut`, `curlyCrop`, `afro`, `wavyCrop`, `shortLocs`, `flatTop`, `receding`, `thinning`, `pixie`, `bob`, `longBob`, `wavyBob`, `shoulderStraight`, `shoulderWaves`, `longStraight`, `longWaves`, `longCurls`, `longLocs`, `lowPonytail`, `highPonytail`, `ponytail`, `sidePonytail`, `topBun`, `lowBun`, `singleBraid`, `twinBraids`, `braids` (colours: `black`, `brown`, `chestnut`, `auburn`, `blond`, `ginger`, `gray`, `white` in `HAIR_COLORS`)
|
|
14685
|
+
- `hair`: `bald`, `buzzCut`, `crewCut`, `short`, `sidePart`, `sideSwept`, `slickBack`, `quiff`, `spiky`, `mangaSpikes`, `mangaSweep`, `undercut`, `curlyCrop`, `afro`, `wavyCrop`, `shortLocs`, `flatTop`, `receding`, `thinning`, `pixie`, `bob`, `longBob`, `wavyBob`, `shoulderStraight`, `shoulderWaves`, `longStraight`, `longWaves`, `longCurls`, `longLocs`, `lowPonytail`, `highPonytail`, `ponytail`, `sidePonytail`, `topBun`, `lowBun`, `singleBraid`, `twinBraids`, `braids` (colours: `black`, `brown`, `chestnut`, `auburn`, `blond`, `ginger`, `gray`, `white` in `HAIR_COLORS`)
|
|
14558
14686
|
- `facialHair`: `cleanShaven`, `stubble`, `pencilMoustache`, `shortMoustache`, `chevron`, `handlebar`, `walrus`, `goatee`, `vanDyke`, `circleBeard`, `shortBoxed`, `fullBeard`, `longBeard`, `roundedBeard`, `pointedBeard`, `chinStrap`, `soulPatch`, `sideburns`, `muttonChops`, `moustacheStubble`
|
|
14559
14687
|
- `glasses`: `round`, `square`, `sunglasses`; `hat`: `cap`, `beanie`, `hardHat`, `sunHat`, `bowler`; `ears: true`; `face: { teeth, tongue }` (shown when the mouth opens); `feet`: `round`, `flat`, `pointed`, `big`
|
|
14560
14688
|
- `outfit`: `{ shirt, trousers, sleeves: short | long | none, bottom: trousers | shorts | skirt, collar, tie: colour, over: apron | labCoat | hoodie | cardigan | overalls | sari, overColor, shoes: boots, shoeColor }`
|
|
14561
|
-
- `castMember(name, height)`: `boy`, `girl`, `youngMan`, `youngWoman`, `man`, `woman`, `grandpa`, `grandma`, `doctor`, `cook`, `builder`, `courier`, `teacher`, `farmer`, `animeBoy`, `animeGirl`, `animeYoungMan`, `animeYoungWoman`, `animeMan`, `animeWoman`, `animeOlderMan`, `animeOlderWoman`
|
|
14689
|
+
- `castMember(name, height)`: `boy`, `girl`, `youngMan`, `youngWoman`, `man`, `woman`, `grandpa`, `grandma`, `doctor`, `cook`, `builder`, `courier`, `teacher`, `farmer`, `animeBoy`, `animeGirl`, `animeYoungMan`, `animeYoungWoman`, `animeMan`, `animeWoman`, `animeOlderMan`, `animeOlderWoman`, `mangaYoungMan`, `mangaYoungWoman`, `mangaRival`, `mangaHeroine`
|
|
14562
14690
|
- Face marks (pose fields, 0–1): `blush`, `tears`, `sweat`; close-up fields `pupil` (size, 1 usual), `lid` (upper lids lowered, 0–1), `bulge` (eyes out of the head, 0–1); `face: { nose: true, inPupil(ctx, pupil) }`; `drawCharacterHead(ctx, who, pose, { x, y, radius })` draws just the head big
|
|
14563
14691
|
- Face styles: `simple`, `anime`; `face: { style: 'anime', iris: '#4b7fce', lashes: true, ageLines: 0.8 }` uses coloured eyes and the same expressions, blinks and gaze. `ANIME_CAST` contains eight age presets, also available through `castMember`.
|
|
14692
|
+
- Face shapes: `round`, `angular`; `face: { shape: 'angular', jawWidth: 0.74, chinWidth: 0.14, eyeScale: 0.8, eyeAspect: 0.65 }` sets a tapered 3D jaw and narrower anime eyes. `MANGA_CAST` contains four original young adult presets; hair styles `mangaSpikes` and `mangaSweep` remain editable.
|
|
14564
14693
|
- Hair in motion (pose fields): `hair.swing` (degrees round the head, + toward its left), `hair.trail` (head radii back), `hair.lift` (head radii up); key them with `hairFollowTracks(target, tracks, who)` after the character's tracks, or `hairFollow` + `hairMotionAt` when posing per frame
|
|
14565
14694
|
- `holding`: `mug` (left or right), `phone` (left or right), `book` (one hand or both), `bag` (left or right), `briefcase` (left or right), `umbrella` (left or right), `broom` (left or right), `cane` (left or right), `parcel` (both); pose fields `held.left`, `held.right`, `held.both` (below 0.5 lets go); `handGrip(joints, side)`
|
|
14566
14695
|
- `meetHands(kind, a, b)` (stand them `meetingSpacing(kind, a, b)` apart): `handshake`, `highFive`, `fistBump`, `handOver`; `embrace(a, b)` (a hug, `embraceSpacing` apart); `helpUp(helper, sitter, progress)` (0 on the floor, hand taken; 1 standing; `helpUpSpacing` apart)
|
package/llms.txt
CHANGED
|
@@ -13,47 +13,47 @@ 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.106.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.106.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.106.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.106.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.106.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.106.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.106.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.106.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.106.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.106.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.106.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.106.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.106.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.106.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
|
-
- [Scroll Animation](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
43
|
-
- [Props: Everyday Objects with Behaviours](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
44
|
-
- [Teaching Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
45
|
-
- [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
46
|
-
- [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
47
|
-
- [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
48
|
-
- [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
49
|
-
- [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
50
|
-
- [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
51
|
-
- [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
52
|
-
- [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
53
|
-
- [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
54
|
-
- [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
42
|
+
- [Scroll Animation](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.0/docs/scroll-animation.md): Scroll-driven and play-when-visible animation with ScrollDriver and VisibilityDriver.
|
|
43
|
+
- [Props: Everyday Objects with Behaviours](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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.
|
|
44
|
+
- [Teaching Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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.
|
|
45
|
+
- [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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.
|
|
46
|
+
- [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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.
|
|
47
|
+
- [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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.
|
|
48
|
+
- [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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).
|
|
49
|
+
- [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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.
|
|
50
|
+
- [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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.
|
|
51
|
+
- [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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.
|
|
52
|
+
- [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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.
|
|
53
|
+
- [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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.
|
|
54
|
+
- [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.0/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
|
|
55
55
|
|
|
56
56
|
## Optional
|
|
57
57
|
|
|
58
|
-
- [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
59
|
-
- [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.
|
|
58
|
+
- [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.0/README.md): Feature overview, project layout and development setup.
|
|
59
|
+
- [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.106.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.106.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
|
@@ -158,3 +158,17 @@ from `frame.time / frame.period` with helpers that repeat exactly (`wobble`,
|
|
|
158
158
|
`bubblePath` with `period`; sound via `cutAudioToLoop`), whole turns and
|
|
159
159
|
cycles only; then `npx @algorisys/tinyfly video scene.mjs --loop-check` must
|
|
160
160
|
say "closes".
|
|
161
|
+
|
|
162
|
+
### Manga cast and stick-figure arm proportions
|
|
163
|
+
|
|
164
|
+
- `MANGA_CAST` / `castMember('mangaYoungMan', height)` supply four original young adult presets. `face.shape: 'angular'`, `jawWidth`, `chinWidth`, `eyeScale` and `eyeAspect` customise them; keep expressions as pose fields.
|
|
165
|
+
- Hair styles `mangaSpikes` and `mangaSweep` use editable `spikes: [{ around, up, length, width }]` in head radii (around in degrees). Hair and clothes can be replaced independently of the face. Spread nested preset face options before changing one field.
|
|
166
|
+
- Pen head outlines follow yaw/nod/roll; contact bounds and the solid mesh head remain unchanged.
|
|
167
|
+
- The original stick figure takes `style.armLength` as a positive finite multiplier (default 1) in its draw, joints and target APIs. Both arm bones scale; hands and other body proportions retain their sizes. The newer human rig retains its `CharacterOptions.armLength`.
|
|
168
|
+
|
|
169
|
+
### Share an example preview
|
|
170
|
+
|
|
171
|
+
Catalog examples have an **Open full page** link at `/examples/<id>/full`,
|
|
172
|
+
for a full-viewport standalone player in a separate tab. It supports live,
|
|
173
|
+
timeline and editable examples, with their controls and scrolling. Use the
|
|
174
|
+
normal `/examples/<id>` route for the gallery card and code.
|