@algorisys/tinyfly 0.113.0 → 0.115.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 +7 -6
- package/docs/character-appearance.md +53 -2
- 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 +8 -1
- package/docs/maps.md +2 -2
- package/docs/teaching.md +1 -1
- package/lib/addons/characters.js +881 -872
- package/lib/addons/cricket-play-C5CkNOc6.js +5219 -0
- package/lib/addons/sports.js +1 -1
- package/lib/browser/tinyfly.iife.js +12 -12
- package/lib/browser/tinyfly.js +8218 -7933
- package/lib/browser/tinyfly.umd.js +12 -12
- package/lib/types/characters/body/body-shape.d.ts +86 -0
- package/lib/types/characters/body/organic-body.d.ts +16 -0
- package/lib/types/characters/character.d.ts +4 -0
- package/lib/types/characters/index.d.ts +3 -0
- package/lib/types/characters/look/illustrated-pen.d.ts +36 -0
- package/lib/types/characters/look/illustration-color.d.ts +13 -0
- package/lib/types/characters/look/pen.d.ts +18 -5
- package/lib/types/characters/soft-cartoon-cast.d.ts +7 -0
- package/llms-full.txt +72 -11
- package/llms.txt +30 -30
- package/package.json +1 -1
- package/skills/tinyfly/SKILL.md +8 -2
- package/lib/addons/cricket-play-DQqoiwTG.js +0 -4936
package/README.md
CHANGED
|
@@ -59,7 +59,8 @@ A lightweight, API-driven animation engine and visual editor for creating high-p
|
|
|
59
59
|
Defensive blocks meet the blade with both hands on the bat. Keeper-bound deliveries pass outside the off stump with clearance for the displayed ball before collection.
|
|
60
60
|
|
|
61
61
|
- **Soft cartoon story characters** - Opt-in `figure: 'organic'` adds filled shoulders, chest/waist/hip contours, supple limbs, small posed hands and deterministic cel shading on the existing rig. JSON body profiles keep anatomy independent of outline width; one skin colour covers body, face and hands under scene lighting and fog, and cel shading respects inherited opacity. Rear scalp hair and hats stay with the head through camera-sorted turns and nods. Foreground arms stay over waist garments in 2D and globally sorted 3D scenes, with only foreground arms promoted to garment depths so leaning head, neck, torso and legs retain world-object occlusion. Transparent organic skin keeps exposed body, head and both hand variants outline-only in every look. Editor Skin and Line controls resolve and edit imported body colour overrides. Leaf garment options are validated and copied at construction. Actor names are checked at runtime, and each head contour is reused for filling, shading and face clipping within a draw. Editable adult and child `softCartoonCharacter` presets, flowing hair, editable everyday/formal/casual/leaf clothing and the existing script, reach and lip-sync APIs support original stories. Try [**Soft Cartoon Characters**](https://tinyfly.app/examples/live-organic-characters): adults, children or an adult and child, with seven actions, face/hair controls and independent outfit editing. `outfitPreset()` supplies JSON wardrobe defaults; shirts, T-shirts, blouses, dresses, trousers, jeans, cargo, shorts, skirts, sleeves, collars, ties and colours remain editable. See [the appearance guide](docs/character-appearance.md).
|
|
62
|
-
- **
|
|
62
|
+
- **Body shapes and measurements** - `body: { measurements: 'hourglass' }` (or `pear`, `rectangle`, `invertedTriangle`, `round`), or real girths `{ height, bust, underbust, waist, hip }` in any unit, give organic characters proportions that hold up at every turn: the torso has a side-view depth, so the bust, seat and belly read in profile and three-quarter views as well as from the front. Legs and clothing follow the hips, and the editor has a Body shape picker. See [the appearance guide](docs/character-appearance.md#body-shape-and-measurements).
|
|
63
|
+
- **Characters** - A poseable stick figure (`@algorisys/tinyfly/characters`): named poses, facial expressions (brows, eyes that widen, close and look around, mouth shapes), squash and stretch, rubber-hose limbs, blending, walk cycles and talking, all driven by timeline tracks. **Characters v2**: one skeleton in 3D drawn flat, turning front to side to back, resting on whatever touches the ground, reaching for points, in clean, pencil, silhouette or illustrated (inked and painted, with light-weighted lines and shadow and highlight tones) looks, and a 🧍 Character element in the editor you pose and keyframe. **Character appearance**: 41 hairstyles, including soft sweeps, flowing bobs and cascading waves with scalp-attached curved locks and individual flexibility, 20 facial-hair styles, glasses, hats and ears as plain data on the head (they turn with it through all eight views), builds from toddler to tall, a recurring cast (`castMember`), 30 expressions with blush, tears and sweat, and hair that swings after a turn or a run and settles (`hairFollowTracks` keys the lag from the character's own tracks, so drawing stays stateless); four-legged animals' ears lay back on a run the way their tails already trail. Clothes are data too (`outfit.over`: an apron, a lab coat, a hoodie, a cardigan, overalls, a sari; boots), a mouth opens on teeth and a tongue, feet come in shapes, two people hug and help each other up (`embrace`, `helpUp`), and a cane in the hand or a wheelchair to ride are accessories any character can have, not part of an age ([guide](docs/character-appearance.md))
|
|
63
64
|
- **Dance and flips** - The stick figure dances disco, hip hop, breaking toprock, jazz, K-pop, Bollywood, Bhangra, Bharatanatyam (with mudras), the Charleston, tap (foot strikes as data, for tap sounds) and popping (side glide, moonwalk, forward glide, which travel with the planted foot staying put), and does front, back, layout, scissor and side flips, cartwheels, back handsprings, split leaps, toe touches and full splits. Wrists, ankles, foot turn-out, whole-body `spin` and `rise` are pose fields; moves are keyed in beats, so any tempo plays them; styles, grooves and routines are plain JSON (`danceFrame()`, `danceTracks()`, `flipPose()`, `flipTracks()`). In the editor a 🧍 Character dances from the playhead, in time with the music: an Audio element's tempo is detected (`detectTempo()`) or tapped, the timeline shows its beats and bars, and keyframes snap to them. Native v2 garba (two/three clap) and dandiya add body-local poses, circle formations with planted toes, paired stick-tip contacts, and timed full spins (`humanDanceFrame`, `danceCircleTracks`, `meetDandiya`, `characterScript3D`). Sparse custom keys keep numeric hand and pose values through JSON playback; rolled circles preserve native yaw-before-roll and foot grounding. Foot IK preserves authored hip turn-out for ankle and toe plants. Scripted dance entry preserves relaxed or explicitly posed hands through preceding holds. Script action boundaries retain preceding easing; festive examples solve contacts with their rendered body options. See [docs/dance.md](docs/dance.md)
|
|
64
65
|
- **Maps** - Animated maps on OpenStreetMap tiles or an offline world outline (also in pencil): the camera flies in, pins drop, routes draw themselves while a marker travels them; a 🗺 Map element in the editor with a one-click trip
|
|
65
66
|
- **Pencil sketch style** - Hand-drawn strokes with line boil (`sketch` style, `sketchPen`) for a pencil-test, Pencilmation-like look, on the stick figure and on canvas rect / circle / line / path shapes (also from the editor's Properties panel); a `drawOn` track draws any of those shapes on; the wobble is seeded by time, so renders stay deterministic
|
|
@@ -231,7 +232,7 @@ for what you import:
|
|
|
231
232
|
| `@algorisys/tinyfly/teach` | `lesson()` step builder and diagram primitives (cells, pointer, stack, queue, table, pipeline) | Anywhere |
|
|
232
233
|
| `@algorisys/tinyfly/react`, `@algorisys/tinyfly/vue`, `@algorisys/tinyfly/svelte`, `@algorisys/tinyfly/solid` | `useTinyfly` hooks, a Svelte action and a Solid primitive: `live` animations scoped to a component and reverted on unmount | Browser (frameworks are optional peer dependencies) |
|
|
233
234
|
| `@algorisys/tinyfly/maps` | Animated maps: OpenStreetMap tiles or an offline world outline, places, routes that draw on, a camera that flies (`mapTarget`, `mapFlyTracks`, `fitView`, `WORLD_CITIES`) | Anywhere with a Canvas 2D context (tiles need a network) |
|
|
234
|
-
| `@algorisys/tinyfly/characters` | Poseable stick figure: `stickFigureTarget`, `poseTracks`, `POSES`, `blendPose`, `walkPose`, `drawStickFigure`; `stickFigureJoints` and `layers` for costumes, hair and props; `turn`, `sit` and ground contact; an organic look by default (`classic` keeps the old one); **characters v2**: `character()` / `characterTarget()`, turnarounds front to back, contact, reaching, clean / pencil / silhouette looks; `hair`, `facialHair`, `glasses`, `hat`, `ears`, `face`, `feet`, `build`, `outfit` as data, `castMember()`, `HUMAN_EXPRESSIONS` with face marks; `embrace`, `helpUp`, `scenery` | Anywhere with a Canvas 2D context |
|
|
235
|
+
| `@algorisys/tinyfly/characters` | Poseable stick figure: `stickFigureTarget`, `poseTracks`, `POSES`, `blendPose`, `walkPose`, `drawStickFigure`; `stickFigureJoints` and `layers` for costumes, hair and props; `turn`, `sit` and ground contact; an organic look by default (`classic` keeps the old one); **characters v2**: `character()` / `characterTarget()`, turnarounds front to back, contact, reaching, clean / pencil / silhouette / illustrated looks; `hair`, `facialHair`, `glasses`, `hat`, `ears`, `face`, `feet`, `build`, `outfit` as data, `castMember()`, `HUMAN_EXPRESSIONS` with face marks; `embrace`, `helpUp`, `scenery` | Anywhere with a Canvas 2D context |
|
|
235
236
|
| `@algorisys/tinyfly/headless` | `renderVideo`, `renderStills`, `FrameRenderer`: render a scene to MP4 or PNGs (see [Rendering Video from Code](docs/video-rendering.md)) | Node (`@napi-rs/canvas` optional peer, ffmpeg) |
|
|
236
237
|
| `@algorisys/tinyfly/sports` | `cricketPlayer`, `cricketField`, `cricketAction`, `cricketClip`, `cricketPlay`, `cricketPlayClip`, `cricketCameraTracks`, `cricketEventAt`, field marking profiles/classification/overlays, shared `ballFlightTracks`; authored organic cricket stories and a 360° ground camera | Browser, Worker, Node; scene rendering through adapters |
|
|
237
238
|
| `@algorisys/tinyfly/browser` | One script-tag bundle (`tinyfly.iife.js`): the engine, player, drivers, interaction, the GSAP-style `live` / `tf` facades, teaching-embed controls and mounting, and the `characters` stick figure. Not included: `export`, `adapters`, `teach`, the framework hooks, `headless` | Browser |
|
|
@@ -280,7 +281,7 @@ GSAP-shaped functions at the top level. Teaching embeds are included: add
|
|
|
280
281
|
itself.
|
|
281
282
|
|
|
282
283
|
```html
|
|
283
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
284
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.115.0/cdn/tinyfly.iife.js"></script>
|
|
284
285
|
<script>
|
|
285
286
|
tinyfly.to('.box', { x: 200, rotate: 90, duration: 1, ease: 'power2.out' })
|
|
286
287
|
|
|
@@ -316,7 +317,7 @@ A teaching figure needs no code at all:
|
|
|
316
317
|
<script type="application/json" data-tinyfly-timeline>{ …timeline JSON with markers… }</script>
|
|
317
318
|
<figcaption>Appending to a full slice</figcaption>
|
|
318
319
|
</figure>
|
|
319
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
320
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.115.0/cdn/tinyfly.iife.js" data-tinyfly-auto></script>
|
|
320
321
|
```
|
|
321
322
|
|
|
322
323
|
See [Teaching Animations](docs/teaching.md).
|
|
@@ -415,7 +416,7 @@ Without a build step, the player bundle puts the same functions on a `tinyfly` g
|
|
|
415
416
|
<div data-tinyfly="box" style="width: 60px; height: 60px; background: #4a9eff;"></div>
|
|
416
417
|
</div>
|
|
417
418
|
|
|
418
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
419
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.115.0/cdn/tinyfly-player.iife.js"></script>
|
|
419
420
|
<script>
|
|
420
421
|
tinyfly.play('#animation', './animation.json', { loop: -1 })
|
|
421
422
|
</script>
|
|
@@ -524,7 +525,7 @@ Or skip the code entirely with declarative embeds (see [Teaching Animations](doc
|
|
|
524
525
|
<svg viewBox="0 0 720 200">…</svg>
|
|
525
526
|
<script type="application/json" data-tinyfly-timeline>{ …timeline JSON… }</script>
|
|
526
527
|
</figure>
|
|
527
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
528
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.115.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
528
529
|
```
|
|
529
530
|
|
|
530
531
|
### Audio / Video Sync
|
|
@@ -75,6 +75,32 @@ height. Torso positions run hip to neck, arms shoulder to wrist, and legs
|
|
|
75
75
|
hip to ankle. Cubic centerlines pass through native elbow/knee joints with
|
|
76
76
|
interpolated width profiles. Options are copied at construction and can
|
|
77
77
|
travel as JSON. `body.depth` (0.2–1, default 0.55) sets torso side thickness.
|
|
78
|
+
`body.torsoFront` and `body.torsoBack` (same format) set the torso's side
|
|
79
|
+
view directly: its depth from the spine line toward the chest and belly, and
|
|
80
|
+
toward the back and seat. They default to `torso × depth` each way.
|
|
81
|
+
|
|
82
|
+
### Body shape and measurements
|
|
83
|
+
|
|
84
|
+
`body.measurements` describes the torso the way a size chart does, so women,
|
|
85
|
+
men and children of every build can be drawn in proportion:
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
character({ figure: 'organic', body: { measurements: 'hourglass' } })
|
|
89
|
+
character({ figure: 'organic', body: { measurements: { height: 165, bust: 94, underbust: 76, waist: 70, hip: 98 } } })
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The girths can be in any unit, as long as `height` uses the same one. `underbust`
|
|
93
|
+
defaults to 0.86 × `bust`, and the difference between the two is how far the bust
|
|
94
|
+
projects. Named shapes (`BODY_SHAPES`) are `hourglass`, `pear`, `rectangle`,
|
|
95
|
+
`invertedTriangle` and `round`. Measurements set the front width, the side depth
|
|
96
|
+
(the bust forward, the seat back, and a belly when the waist is close to the hips)
|
|
97
|
+
and the hip and thigh spacing. Because each torso section is projected from both
|
|
98
|
+
its width and its depth, the shape reads correctly at every `turn`, not only from
|
|
99
|
+
the front. Clothing follows the same contour. Any explicit `torso`, `torsoFront`,
|
|
100
|
+
`torsoBack` or `hipWidth` still wins. `softCartoonCharacter` drops its preset torso
|
|
101
|
+
when you pass new measurements. The shapes are kept as stylised silhouettes, in
|
|
102
|
+
proportion with the rest of the cast. In the editor, organic characters have a
|
|
103
|
+
**Body shape** picker.
|
|
78
104
|
`body.fill` overrides `skin` for all exposed body, face and palms; omit it
|
|
79
105
|
to keep one `skin` colour control. The editor's Skin and Line controls show
|
|
80
106
|
the resolved fill and outline colour; editing them also updates any existing
|
|
@@ -107,6 +133,31 @@ accepts `mode: 'cel' | 'none'`, screen-space `light: [x, y]`, `shadow`,
|
|
|
107
133
|
Pencil and silhouette use their existing pens. Artist-authored painted
|
|
108
134
|
meshes remain a separate future capability.
|
|
109
135
|
|
|
136
|
+
### The illustrated look
|
|
137
|
+
|
|
138
|
+
`look: 'illustrated'` inks and paints the same shapes the clean look draws:
|
|
139
|
+
|
|
140
|
+
- Outlines are heavier on the side turned away from the light and thinner on
|
|
141
|
+
the lit side; open strokes (brows, mouth lines, folds, hair strands) taper
|
|
142
|
+
at their ends like a brush.
|
|
143
|
+
- Skin, clothes and hair are painted with a soft shadow, a narrower core
|
|
144
|
+
shadow and a highlight, mixed from each fill's own colour: shadows lean
|
|
145
|
+
toward red-violet, highlights toward warm yellow, greys shade cool
|
|
146
|
+
(`illustrationTones(colour)` returns the three tones).
|
|
147
|
+
- Faces get heavier arched brows, a lid shadow and crease, an iris glow, a
|
|
148
|
+
soft lower lip and cheek warmth.
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
character({
|
|
152
|
+
look: 'illustrated',
|
|
153
|
+
illustrated: { light: [-0.8, -0.6], weight: 0.6, taper: 0.7, shadow: 1, highlight: 0.6 },
|
|
154
|
+
})
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Every option is optional. `light` points toward the light in screen space
|
|
158
|
+
and defaults to the body's `shading.light`; the others run 0..1. Drawing is
|
|
159
|
+
deterministic: the same character, pose and options give the same pixels.
|
|
160
|
+
|
|
110
161
|
Set `body.fill: 'none'` (or `skin: 'none'` without a body fill override) for
|
|
111
162
|
outline-only exposed body, head and hands in every look. Dot and articulated
|
|
112
163
|
hands omit skin fills and shading; clothing retains its own material.
|
|
@@ -264,7 +315,7 @@ Every style is the same few fields (`resolveHair(spec)` fills them all in):
|
|
|
264
315
|
| `ties` | Ponytails, buns and braids: `{ kind: 'ponytail' \| 'bun' \| 'braid', at: 'top' \| 'high' \| 'low' \| 'left' \| 'right', length?, size? }` |
|
|
265
316
|
| `locks` | Curved sections: `{ path, width, follow? }`; `width` is in head radii; `follow` scales their flex (default 1, 0 pins a lock) |
|
|
266
317
|
| `fall` | Hanging mass: `{ taper, wave }`, narrowing toward the ends (0..1 head radii) and a soft uneven hem (nonnegative head radii) |
|
|
267
|
-
| `shine` | Soft highlight opacity on the locks, 0..1 (default 0); drawn in the clean
|
|
318
|
+
| `shine` | Soft highlight opacity on the locks, 0..1 (default 0); drawn in the clean and illustrated looks |
|
|
268
319
|
| `coversEars` | The hair hides the ears |
|
|
269
320
|
|
|
270
321
|
A style stays a starting point: any style suits anyone.
|
|
@@ -475,7 +526,7 @@ coloured irises and highlights. `iris` sets their colour (default `#4b7fce`),
|
|
|
475
526
|
`lashes` enables outer lashes (default true), and `ageLines` sets subtle eye
|
|
476
527
|
and smile creases from 0 to 1 (default 0). `style: 'simple'` is the original
|
|
477
528
|
face and remains the default. Face style is separate from the pen's `look`
|
|
478
|
-
(`clean`, `pencil`, or `
|
|
529
|
+
(`clean`, `pencil`, `silhouette` or `illustrated`); `look: 'anime'` is not a pen style.
|
|
479
530
|
|
|
480
531
|
The existing `eye.left`, `eye.right`, `blink`, `lookX`, `lookY`, `pupil`, `lid`,
|
|
481
532
|
`bulge`, brows and mouth fields animate both styles. The coloured eye opening
|
package/docs/editor-guide.md
CHANGED
|
@@ -1143,7 +1143,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
|
|
|
1143
1143
|
**Steps to embed:**
|
|
1144
1144
|
1. Build the player: `npm run build:player`
|
|
1145
1145
|
2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
|
|
1146
|
-
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
1146
|
+
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.115.0/cdn/tinyfly-player.iife.js`
|
|
1147
1147
|
instead; see [Deployment](DEPLOYMENT.md))
|
|
1148
1148
|
3. Copy the generated code into your HTML
|
|
1149
1149
|
4. Adjust the script `src` path if needed
|
package/docs/examples.md
CHANGED
|
@@ -743,7 +743,7 @@ For simple website embedding without a build system.
|
|
|
743
743
|
</html>
|
|
744
744
|
```
|
|
745
745
|
|
|
746
|
-
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.
|
|
746
|
+
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.115.0/cdn/tinyfly-player.iife.js`.
|
|
747
747
|
|
|
748
748
|
---
|
|
749
749
|
|
package/docs/getting-started.md
CHANGED
|
@@ -185,7 +185,7 @@ with a GSAP-style call (durations are in seconds here):
|
|
|
185
185
|
```html
|
|
186
186
|
<div class="box" style="width:60px;height:60px;background:#4a9eff"></div>
|
|
187
187
|
|
|
188
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
188
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.115.0/cdn/tinyfly.iife.js"></script>
|
|
189
189
|
<script>
|
|
190
190
|
tinyfly.to('.box', { x: 200, duration: 1 })
|
|
191
191
|
</script>
|
package/docs/gsap-compat.md
CHANGED
|
@@ -74,7 +74,7 @@ Without a build step, the all-in-one bundle exposes the same functions on a
|
|
|
74
74
|
global — `tinyfly.to()`, `tinyfly.timeline()` and so on:
|
|
75
75
|
|
|
76
76
|
```html
|
|
77
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
77
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.115.0/cdn/tinyfly.iife.js"></script>
|
|
78
78
|
<script>
|
|
79
79
|
tinyfly.to('.box', { x: 200, duration: 1 })
|
|
80
80
|
</script>
|
package/docs/llm-guide.md
CHANGED
|
@@ -166,7 +166,12 @@ lets hair occlude them, with a flatter profile facial plane and a nose above
|
|
|
166
166
|
the mouth; classic `cartoon` projection remains available. Foreground organic
|
|
167
167
|
arms/hands draw together over lower garments, preserving the wrist at the waist.
|
|
168
168
|
`body` owns JSON half-width profiles (`torso`, `arm`, `leg`, `neck`): increasing
|
|
169
|
-
arrays of `{ at: 0..1, width: fractionOfHeight }` spanning 0 to 1.
|
|
169
|
+
arrays of `{ at: 0..1, width: fractionOfHeight }` spanning 0 to 1. For a body
|
|
170
|
+
in proportion, prefer `body.measurements`: a shape name (`hourglass`, `pear`,
|
|
171
|
+
`rectangle`, `invertedTriangle`, `round`) or girths `{ height, bust, underbust?,
|
|
172
|
+
waist, hip }` in one unit. It sets the front width, the side depth (bust forward,
|
|
173
|
+
seat back) and the leg spacing, so the figure reads correctly at every `turn`.
|
|
174
|
+
Don't hand-tune `torso` to fake a side view; `torsoFront`/`torsoBack` set depth. Set `skin`
|
|
170
175
|
once for exposed body, head and hands; `body.fill` overrides it.
|
|
171
176
|
Use `body.fill: 'none'` for outline-only exposed skin, including both hand
|
|
172
177
|
variants in every look. In 3D, only foreground arms use garment depths for
|
|
@@ -212,6 +217,8 @@ from. The eight presets in `ANIME_CAST` (`animeBoy`, `animeGirl`,
|
|
|
212
217
|
Use `face: { style: 'anime', iris: '#4b7fce', lashes: true, ageLines: 0.6 }`
|
|
213
218
|
for coloured expressive eyes and optional creases; this is a face style,
|
|
214
219
|
not a `look` value. It uses the same expressions, blink, gaze and turn fields.
|
|
220
|
+
The `look` values are `clean`, `pencil`, `silhouette` and `illustrated`
|
|
221
|
+
(inked and painted, tuned with `illustrated: { light, weight, taper, shadow, highlight }`).
|
|
215
222
|
Age is proportions, hair, creases and clothes, never a stoop; a `cane` in a hand or
|
|
216
223
|
a `wheelchair()` to ride (`RIDING_POSES.wheeling`) is an accessory any
|
|
217
224
|
character can have. Expressions come from `HUMAN_EXPRESSIONS`
|
package/docs/maps.md
CHANGED
|
@@ -14,8 +14,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
|
|
|
14
14
|
adds to the same `tinyfly` global:
|
|
15
15
|
|
|
16
16
|
```html
|
|
17
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
18
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
17
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.115.0/cdn/tinyfly.iife.js"></script>
|
|
18
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.115.0/cdn/tinyfly-maps.iife.js"></script>
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
It is a separate script because the offline world map it carries adds about
|
package/docs/teaching.md
CHANGED
|
@@ -25,7 +25,7 @@ path for all of that:
|
|
|
25
25
|
</figure>
|
|
26
26
|
|
|
27
27
|
<!-- once, anywhere on the page (a site-wide footer is fine) -->
|
|
28
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
28
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.115.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
|