@algorisys/tinyfly 0.104.0 → 0.105.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 +10 -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 +11 -1
- package/docs/getting-started.md +1 -1
- package/docs/gsap-compat.md +1 -1
- package/docs/llm-guide.md +13 -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 +124 -12
- package/llms.txt +29 -29
- package/package.json +1 -1
- package/skills/tinyfly/SKILL.md +7 -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.105.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.105.0/cdn/tinyfly.iife.js"></script>
|
|
416
416
|
<script>
|
|
417
417
|
tinyfly.to('.box', { x: 200, duration: 1 })
|
|
418
418
|
</script>
|
|
@@ -1586,6 +1586,16 @@ quickPlay({
|
|
|
1586
1586
|
|
|
1587
1587
|
Practical examples for common animation patterns using the tinyfly API.
|
|
1588
1588
|
|
|
1589
|
+
## Young Adult Manga Cast
|
|
1590
|
+
|
|
1591
|
+
[Young Adult Manga Cast](https://tinyfly.app/examples/live-manga-cast) shows
|
|
1592
|
+
four original presets with angular jaws, tapered chins, narrower eyes and
|
|
1593
|
+
pointed hair. Change hair, face shape, jaw/chin widths, eye height and expression,
|
|
1594
|
+
view the whole body or close-up, and enable a complete turnaround. The controls
|
|
1595
|
+
use the public `MANGA_CAST`, `castMember` and face/hair options; Copy as page
|
|
1596
|
+
exports the same working example. The original Stick Figure example also
|
|
1597
|
+
has an arm-length slider.
|
|
1598
|
+
|
|
1589
1599
|
## Colour Anime Cast
|
|
1590
1600
|
|
|
1591
1601
|
Open [Colour Anime Cast](https://tinyfly.app/examples/live-anime-cast) to inspect
|
|
@@ -2308,7 +2318,7 @@ For simple website embedding without a build system.
|
|
|
2308
2318
|
</html>
|
|
2309
2319
|
```
|
|
2310
2320
|
|
|
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.
|
|
2321
|
+
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.105.0/cdn/tinyfly-player.iife.js`.
|
|
2312
2322
|
|
|
2313
2323
|
---
|
|
2314
2324
|
|
|
@@ -2387,6 +2397,7 @@ Complete reference for the tinyfly animation engine, player, and adapters.
|
|
|
2387
2397
|
|
|
2388
2398
|
## Table of Contents
|
|
2389
2399
|
|
|
2400
|
+
- [Character Cast and Proportions](#character-cast-and-proportions)
|
|
2390
2401
|
- [Core Types](#core-types)
|
|
2391
2402
|
- [Timeline](#timeline)
|
|
2392
2403
|
- [Track](#track)
|
|
@@ -4798,6 +4809,24 @@ another is running takes over each element from where it appears.
|
|
|
4798
4809
|
`Stage` and `quickPlay`, with `to`, `from`, `fromTo`, `set`, `timeline`,
|
|
4799
4810
|
`ticker` and `splitText` at the top level bound to `live`.
|
|
4800
4811
|
|
|
4812
|
+
## Character Cast and Proportions
|
|
4813
|
+
|
|
4814
|
+
Import these APIs from `@algorisys/tinyfly/characters` (or the browser bundle's
|
|
4815
|
+
`tinyfly` global).
|
|
4816
|
+
|
|
4817
|
+
| API | Purpose |
|
|
4818
|
+
|---|---|
|
|
4819
|
+
| `ANIME_CAST`, `MANGA_CAST`, `CHARACTER_CAST` | Editable character option presets and their labels, groups and height scales |
|
|
4820
|
+
| `castMember(name, height, changes)` | Resolve a preset, scaled to the adult height, with optional option overrides |
|
|
4821
|
+
| `character(options)` | Create the native human rig with editable face, hair, build and clothing |
|
|
4822
|
+
| `FaceOptions` | Simple/anime style, iris, lashes, age creases; round/angular shape, jaw/chin widths, eye scale/aspect, nose and mouth extras |
|
|
4823
|
+
| `HairSpec`, `HairSpike` | Editable hair fields and pointed tufts that follow the head's turn |
|
|
4824
|
+
| `StickStyle.armLength` | Positive finite multiplier of both original stick-figure arm bones, default 1; used by draw, target and joints APIs |
|
|
4825
|
+
|
|
4826
|
+
See [Character Appearance](character-appearance.md#young-adult-manga-cast)
|
|
4827
|
+
for parameter ranges, examples and JSON semantics. `AnimeCastName` and
|
|
4828
|
+
`MangaCastName` type the preset names.
|
|
4829
|
+
|
|
4801
4830
|
---
|
|
4802
4831
|
|
|
4803
4832
|
<!-- docs/file-format.md -->
|
|
@@ -5671,7 +5700,10 @@ its box; resize the box to change its height. In the property panel:
|
|
|
5671
5700
|
**Iris colour** and **Eyelashes** toggle; **Age creases** adds subtle facial
|
|
5672
5701
|
lines. The Cast picker includes eight colour anime presets for boys, girls,
|
|
5673
5702
|
young adults, adults and older adults. The 3D Scene character's Cast picker
|
|
5674
|
-
uses the same presets.
|
|
5703
|
+
uses the same presets. The manga presets add angular faces and pointed hair;
|
|
5704
|
+
**Face shape**, **Jaw width**, **Chin width**, **Eye size** and **Eye height**
|
|
5705
|
+
edit those features. **Nose** and **Line width** control the remaining details.
|
|
5706
|
+
Picking another hairstyle keeps the face and clears custom hair overrides.
|
|
5675
5707
|
|
|
5676
5708
|
To animate a character, pick a view, a pose and a face, and click
|
|
5677
5709
|
**◆ Keyframe pose at playhead**. Move the playhead, pick the next pose, and
|
|
@@ -6639,7 +6671,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
|
|
|
6639
6671
|
**Steps to embed:**
|
|
6640
6672
|
1. Build the player: `npm run build:player`
|
|
6641
6673
|
2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
|
|
6642
|
-
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
6674
|
+
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.105.0/cdn/tinyfly-player.iife.js`
|
|
6643
6675
|
instead; see [Deployment](DEPLOYMENT.md))
|
|
6644
6676
|
3. Copy the generated code into your HTML
|
|
6645
6677
|
4. Adjust the script `src` path if needed
|
|
@@ -8054,6 +8086,19 @@ When writing tinyfly animations, follow node_modules/@algorisys/tinyfly/skills/t
|
|
|
8054
8086
|
**A chat window**: paste the output of `npx @algorisys/tinyfly capabilities`,
|
|
8055
8087
|
or link `llms-full.txt`.
|
|
8056
8088
|
|
|
8089
|
+
### Manga faces and original stick-figure proportions
|
|
8090
|
+
|
|
8091
|
+
`MANGA_CAST` supplies four original young adult presets through `castMember`.
|
|
8092
|
+
`face.shape: 'angular'`, `jawWidth` and `chinWidth` shape the projected pen head;
|
|
8093
|
+
`eyeScale` and `eyeAspect` shape anime eyes. Hair and outfit overrides remain
|
|
8094
|
+
independent; spread the preset's face when changing one nested field.
|
|
8095
|
+
`mangaSpikes` / `mangaSweep` contain editable `hair.spikes` tufts as JSON
|
|
8096
|
+
(`around` degrees, `up` scalp height, `length` and `width` head radii).
|
|
8097
|
+
The solid mesh head and contact bounds retain their existing geometry.
|
|
8098
|
+
For the original stick figure use `style.armLength` (positive finite, default 1)
|
|
8099
|
+
in `drawStickFigure`, `stickFigureJoints` or `stickFigureTarget`; it changes
|
|
8100
|
+
both arm segments, with hands and the rest of the body keeping their sizes.
|
|
8101
|
+
|
|
8057
8102
|
---
|
|
8058
8103
|
|
|
8059
8104
|
<!-- docs/teaching.md -->
|
|
@@ -8085,7 +8130,7 @@ path for all of that:
|
|
|
8085
8130
|
</figure>
|
|
8086
8131
|
|
|
8087
8132
|
<!-- once, anywhere on the page (a site-wide footer is fine) -->
|
|
8088
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
8133
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.105.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
8089
8134
|
```
|
|
8090
8135
|
|
|
8091
8136
|
Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
|
|
@@ -9357,8 +9402,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
|
|
|
9357
9402
|
adds to the same `tinyfly` global:
|
|
9358
9403
|
|
|
9359
9404
|
```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.
|
|
9405
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.105.0/cdn/tinyfly.iife.js"></script>
|
|
9406
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.105.0/cdn/tinyfly-maps.iife.js"></script>
|
|
9362
9407
|
```
|
|
9363
9408
|
|
|
9364
9409
|
It is a separate script because the offline world map it carries adds about
|
|
@@ -9815,7 +9860,7 @@ cast member at an adult `height` (each stands at their own scale of it). The
|
|
|
9815
9860
|
family: `boy`, `girl`, `youngMan`, `youngWoman`, `man`, `woman`, `grandpa`,
|
|
9816
9861
|
`grandma`; at work (from the occupations sheet): `doctor`, `cook`, `builder`,
|
|
9817
9862
|
`courier`, `teacher`, `farmer`. `CHARACTER_CAST` has each one's `label`,
|
|
9818
|
-
`group` (`family`, `work` or `
|
|
9863
|
+
`group` (`family`, `work`, `anime` or `manga`), `scale` and `options`.
|
|
9819
9864
|
|
|
9820
9865
|
```js
|
|
9821
9866
|
const family = ['man', 'woman', 'girl', 'grandma'].map((name) => character(castMember(name, 280)))
|
|
@@ -9858,6 +9903,70 @@ face close-ups and a complete turnaround. Both the Character and 3D Scene
|
|
|
9858
9903
|
editors offer these presets in their Cast picker. The Character editor also
|
|
9859
9904
|
has Face style, Iris colour, Eyelashes and Age creases controls, saved in project JSON.
|
|
9860
9905
|
|
|
9906
|
+
### Young adult manga cast
|
|
9907
|
+
|
|
9908
|
+
`MANGA_CAST` supplies four original archetypes: `mangaYoungMan`,
|
|
9909
|
+
`mangaYoungWoman`, `mangaRival`, and `mangaHeroine`. They also belong to
|
|
9910
|
+
`CHARACTER_CAST` and use the shared expression, pose, dance and turnaround APIs.
|
|
9911
|
+
These presets use lighter line widths, angular jaws and smaller, narrower eyes.
|
|
9912
|
+
Hair, skin, clothing and every face option remain editable.
|
|
9913
|
+
|
|
9914
|
+
```js
|
|
9915
|
+
const preset = MANGA_CAST.mangaYoungMan.options
|
|
9916
|
+
const hero = character(castMember('mangaYoungMan', 300, {
|
|
9917
|
+
hair: { style: 'bob', color: '#446688' },
|
|
9918
|
+
face: { ...preset.face, jawWidth: 0.8, chinWidth: 0.12, iris: '#987546' }
|
|
9919
|
+
}))
|
|
9920
|
+
```
|
|
9921
|
+
|
|
9922
|
+
`face.shape: 'angular'` changes the pen character's head outline into a
|
|
9923
|
+
projected 3D tapered head, following yaw, nod and roll. `jawWidth` is the
|
|
9924
|
+
half-width at the jaw (clamped to 0.55–0.95 head radii, default 0.74);
|
|
9925
|
+
`chinWidth` is the half-width just above the chin (0.03–0.35, default 0.14).
|
|
9926
|
+
`shape: 'round'` is the original default. The underlying rig and contact
|
|
9927
|
+
geometry retain their original head bounds; solid mesh characters retain
|
|
9928
|
+
their existing mesh head.
|
|
9929
|
+
|
|
9930
|
+
Anime `eyeScale` changes eye size (0.5–1.2, default 1), and `eyeAspect`
|
|
9931
|
+
changes eye height relative to width (0.45–1.2, default 1). Smaller aspect
|
|
9932
|
+
values produce narrower manga eyes; expressions, blink, lids and gaze still
|
|
9933
|
+
animate them. These face options are independent of the hairstyle.
|
|
9934
|
+
|
|
9935
|
+
`mangaSpikes` and `mangaSweep` are editable hair presets with pointed 3D
|
|
9936
|
+
tufts. A `hair.spikes` array contains `{ around, up, length, width }`:
|
|
9937
|
+
`around` is degrees from the front, `up` the scalp height from -1 to 1,
|
|
9938
|
+
and `length` and `width` are tuft length and base radius in head radii.
|
|
9939
|
+
Use `spikes: []` to remove the tufts, or choose any other hairstyle.
|
|
9940
|
+
The editor retains custom hair fields in saved JSON; picking a different
|
|
9941
|
+
hairstyle clears the preceding preset's hair overrides.
|
|
9942
|
+
|
|
9943
|
+
The [Young Adult Manga Cast](https://tinyfly.app/examples/live-manga-cast)
|
|
9944
|
+
example lets you change hair, jaw, chin and eye height while expressions and
|
|
9945
|
+
turnarounds animate. The Character editor offers matching face controls,
|
|
9946
|
+
nose and line width; both editor Cast pickers include these presets.
|
|
9947
|
+
|
|
9948
|
+
### Original stick-figure arm proportions
|
|
9949
|
+
|
|
9950
|
+
The original stick-figure API now accepts `StickStyle.armLength`: a positive
|
|
9951
|
+
finite multiplier, default 1, of both upper-arm and forearm lengths.
|
|
9952
|
+
Hands keep their size; torso, shoulder positions, legs and head stay unchanged.
|
|
9953
|
+
It composes with squash/stretch, mirroring, wrist bends and rubber limbs.
|
|
9954
|
+
This is an appearance option, rather than a pose track.
|
|
9955
|
+
|
|
9956
|
+
```js
|
|
9957
|
+
const person = stickFigureTarget({
|
|
9958
|
+
x: 200, y: 400,
|
|
9959
|
+
style: { height: 300, armLength: 0.85 }
|
|
9960
|
+
})
|
|
9961
|
+
const joints = stickFigureJoints(POSES.wave, { height: 300, armLength: 1.2 })
|
|
9962
|
+
drawStickFigure(ctx, POSES.wave, { height: 300, armLength: 1.2 })
|
|
9963
|
+
```
|
|
9964
|
+
|
|
9965
|
+
`stickFigureAt` and costume/prop drawing hooks see the adjusted wrists.
|
|
9966
|
+
The [Stick Figure example](https://tinyfly.app/examples/live-stick-figure)
|
|
9967
|
+
includes an arm-length slider. The newer human rig keeps its existing
|
|
9968
|
+
`CharacterOptions.armLength` setting.
|
|
9969
|
+
|
|
9861
9970
|
## Hugs, help-ups and everyday cycles
|
|
9862
9971
|
|
|
9863
9972
|
Two people, more than hands: `embrace(a, b)` is a hug. Both turn toward each
|
|
@@ -14272,7 +14381,7 @@ magnet.addEventListener('pointerleave', () => {
|
|
|
14272
14381
|
|
|
14273
14382
|
<!-- capabilities: generated from the library -->
|
|
14274
14383
|
|
|
14275
|
-
# tinyfly capabilities (v0.
|
|
14384
|
+
# tinyfly capabilities (v0.105.0)
|
|
14276
14385
|
|
|
14277
14386
|
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
14387
|
|
|
@@ -14351,6 +14460,8 @@ Types: `rect`, `circle`, `text`, `line`, `path`, `image`, `custom`. `describeTar
|
|
|
14351
14460
|
|
|
14352
14461
|
`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
14462
|
|
|
14463
|
+
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.
|
|
14464
|
+
|
|
14354
14465
|
### Pose fields
|
|
14355
14466
|
|
|
14356
14467
|
| Field | Unit | What it does |
|
|
@@ -14554,13 +14665,14 @@ Native dances: `garba`, `garbaThreeClap`, `dandiya`; `humanDanceFrame(style, bea
|
|
|
14554
14665
|
Appearance options of `character({ … })`, all plain data that turns with the head (see docs/character-appearance.md):
|
|
14555
14666
|
|
|
14556
14667
|
- `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`)
|
|
14668
|
+
- `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
14669
|
- `facialHair`: `cleanShaven`, `stubble`, `pencilMoustache`, `shortMoustache`, `chevron`, `handlebar`, `walrus`, `goatee`, `vanDyke`, `circleBeard`, `shortBoxed`, `fullBeard`, `longBeard`, `roundedBeard`, `pointedBeard`, `chinStrap`, `soulPatch`, `sideburns`, `muttonChops`, `moustacheStubble`
|
|
14559
14670
|
- `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
14671
|
- `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`
|
|
14672
|
+
- `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
14673
|
- 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
14674
|
- 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`.
|
|
14675
|
+
- 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
14676
|
- 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
14677
|
- `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
14678
|
- `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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.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.105.0/README.md): Feature overview, project layout and development setup.
|
|
59
|
+
- [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.105.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.105.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,10 @@ 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`.
|