@anime-studio/kit 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +58 -2
- package/dist/cartoon.d.ts +368 -0
- package/dist/cartoon.d.ts.map +1 -0
- package/dist/cartoon.js +2815 -0
- package/dist/cartoon.js.map +1 -0
- package/dist/human.d.ts +165 -0
- package/dist/human.d.ts.map +1 -0
- package/dist/human.js +433 -0
- package/dist/human.js.map +1 -0
- package/dist/humanFront.d.ts +18 -0
- package/dist/humanFront.d.ts.map +1 -0
- package/dist/humanFront.js +137 -0
- package/dist/humanFront.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/info.d.ts +96 -0
- package/dist/info.d.ts.map +1 -0
- package/dist/info.js +277 -0
- package/dist/info.js.map +1 -0
- package/dist/proportions.d.ts +37 -0
- package/dist/proportions.d.ts.map +1 -0
- package/dist/proportions.js +115 -0
- package/dist/proportions.js.map +1 -0
- package/dist/rig.d.ts +538 -0
- package/dist/rig.d.ts.map +1 -0
- package/dist/rig.js +1381 -0
- package/dist/rig.js.map +1 -0
- package/dist/room.d.ts +124 -0
- package/dist/room.d.ts.map +1 -0
- package/dist/room.js +217 -0
- package/dist/room.js.map +1 -0
- package/dist/util.d.ts +27 -0
- package/dist/util.d.ts.map +1 -0
- package/dist/util.js +29 -0
- package/dist/util.js.map +1 -0
- package/dist/views.d.ts +68 -0
- package/dist/views.d.ts.map +1 -0
- package/dist/views.js +92 -0
- package/dist/views.js.map +1 -0
- package/dist/volume.d.ts +105 -0
- package/dist/volume.d.ts.map +1 -0
- package/dist/volume.js +234 -0
- package/dist/volume.js.map +1 -0
- package/package.json +45 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dener Fernandes
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @anime-studio/kit
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@anime-studio/kit)
|
|
4
|
+
[](https://github.com/denerFernandes/animeStudio/actions/workflows/ci.yml)
|
|
5
|
+
[](https://github.com/denerFernandes/animeStudio/blob/master/LICENSE)
|
|
6
|
+
|
|
7
|
+
Part of [animeStudio](https://github.com/denerFernandes/animeStudio), a deterministic 2D/2.5D cartoon animation engine: characters are
|
|
8
|
+
SVG art bound to skeletons, scenes are JSON documents, and every frame is a pure function of the
|
|
9
|
+
documents and the time.
|
|
10
|
+
|
|
11
|
+
Ready-made cartoon characters: `cartoonCharacter(look)` builds a full 2.5D rig from a short description — twelve drawn angles, emotions, lip sync mouths, walks, runs, gestures and knock-downs.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @anime-studio/core @anime-studio/kit
|
|
17
|
+
# or
|
|
18
|
+
pnpm add @anime-studio/core @anime-studio/kit
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Requires Node.js 22 or later (or a modern browser / bundler). The packages are ES modules with
|
|
22
|
+
TypeScript types included.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { writeFileSync } from "node:fs";
|
|
28
|
+
import { compileScene, evaluateScene, frameToSVG } from "@anime-studio/core";
|
|
29
|
+
import { cartoonCharacter } from "@anime-studio/kit";
|
|
30
|
+
|
|
31
|
+
// A character from a short description.
|
|
32
|
+
const maya = cartoonCharacter({
|
|
33
|
+
name: "Maya", build: "woman", female: true, skin: "#a8704f",
|
|
34
|
+
hair: "puffs", hairColor: "#2a1b14", top: "jacket", topColor: "#ff6b5b",
|
|
35
|
+
bottom: "pants", bottomColor: "#2f3a5c", shoes: "sneakers", shoeColor: "#f4f1ea",
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// A scene: one actor waving. Every frame is a pure function of the documents and the time.
|
|
39
|
+
const scene = compileScene({
|
|
40
|
+
format: "toon-scene", version: 1, width: 1280, height: 720, fps: 30, duration: 3,
|
|
41
|
+
characters: { maya: "maya.toon.json" },
|
|
42
|
+
actors: [{ id: "maya", character: "maya", x: 640, y: 680 }],
|
|
43
|
+
script: [{ at: 0, actor: "maya", action: "play", clip: "wave" }],
|
|
44
|
+
}, { characters: { maya } });
|
|
45
|
+
|
|
46
|
+
writeFileSync("frame.svg", frameToSVG(evaluateScene(scene, 1.2)));
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Documentation
|
|
50
|
+
|
|
51
|
+
- [Getting started and features](https://github.com/denerFernandes/animeStudio#readme)
|
|
52
|
+
- [Format specification](https://github.com/denerFernandes/animeStudio/blob/master/docs/FORMAT.md)
|
|
53
|
+
- [API reference](https://github.com/denerFernandes/animeStudio/blob/master/docs/API.md)
|
|
54
|
+
- [Authoring guide for AI agents](https://github.com/denerFernandes/animeStudio/blob/master/docs/AI_GUIDE.md)
|
|
55
|
+
- [Changelog](https://github.com/denerFernandes/animeStudio/blob/master/CHANGELOG.md)
|
|
56
|
+
|
|
57
|
+
## License
|
|
58
|
+
|
|
59
|
+
MIT © Dener Fernandes
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TV-cartoon characters from a short description (`CartoonLook`): the look of a family TV
|
|
3
|
+
* cartoon — long thin limbs, big sneakers, large expressive faces with oval eyes and small dark
|
|
4
|
+
* pupils, thick brows, a wide mouth — on the kit skeleton, so every kit clip, emotion and director
|
|
5
|
+
* feature works with them.
|
|
6
|
+
*
|
|
7
|
+
* The main view is a three-quarter view facing right (the usual TV-cartoon angle: two people talking
|
|
8
|
+
* face each other and the audience); the generated `front` and `back` views share the skeleton.
|
|
9
|
+
* Heads, hair and torsos are modelled as volumes (`volume.ts`) and drawn from each angle, so the
|
|
10
|
+
* three views always match. Measure with `cartoonInfo(doc)`.
|
|
11
|
+
*/
|
|
12
|
+
import { type ToonDoc } from "@anime-studio/core";
|
|
13
|
+
import { type RigInfo } from "./info.js";
|
|
14
|
+
import { type Cast, type Grid, type Sdf, type V3, type ViewLike } from "./volume.js";
|
|
15
|
+
export type CartoonBuild = "baby" | "child" | "kid" | "teen" | "woman" | "man" | "big" | "elder";
|
|
16
|
+
export type CartoonHair = "bowl" | "sidePart" | "afro" | "puffs" | "ponytail" | "long" | "perm" | "mullet" | "buzz" | "bald" | "bun" | "braids" | "rollers" | "tuft" | "receding" | "slick" | "bob" | "curtains" | "spiky";
|
|
17
|
+
export type CartoonHat = "cap" | "capBack" | "flatCap" | "top" | "bowler" | "cowboy";
|
|
18
|
+
export type CartoonNose = "button" | "round" | "long" | "wide";
|
|
19
|
+
export type CartoonJaw = "round" | "square" | "pointy" | "chubby";
|
|
20
|
+
export type CartoonTop = "tee" | "stripes" | "polo" | "shirt" | "tank" | "jersey" | "blouse" | "dress" | "overalls" | "jacket" | "cardigan" | "blazer";
|
|
21
|
+
export type CartoonBottom = "pants" | "shorts" | "bermuda" | "skirt" | "longSkirt";
|
|
22
|
+
/** A print on the top: horizontal stripes, thin vertical stripes (a dress shirt), checks. */
|
|
23
|
+
export type CartoonPattern = "stripes" | "pinstripes" | "checks" | "polka";
|
|
24
|
+
export type CartoonShoes = "sneakers" | "studded" | "canvas" | "flipflops" | "dress" | "heels" | "sandals";
|
|
25
|
+
export interface CartoonLook {
|
|
26
|
+
name: string;
|
|
27
|
+
build: CartoonBuild;
|
|
28
|
+
/** Belly (0..1). */
|
|
29
|
+
heavy?: number;
|
|
30
|
+
/** Arm and leg thickness: `thin` (default), `normal`, `thick`. */
|
|
31
|
+
limbs?: "thin" | "normal" | "thick";
|
|
32
|
+
/** Height multiplier (legs and torso). */
|
|
33
|
+
tall?: number;
|
|
34
|
+
/** Narrow waist, wider hips, lashes. */
|
|
35
|
+
female?: boolean;
|
|
36
|
+
skin: string;
|
|
37
|
+
hair: CartoonHair;
|
|
38
|
+
hairColor: string;
|
|
39
|
+
jaw?: CartoonJaw;
|
|
40
|
+
nose?: CartoonNose;
|
|
41
|
+
top: CartoonTop;
|
|
42
|
+
topColor: string;
|
|
43
|
+
/** Stripes, collar, jacket, overalls bib… */
|
|
44
|
+
top2?: string;
|
|
45
|
+
bottom: CartoonBottom;
|
|
46
|
+
bottomColor: string;
|
|
47
|
+
shoes: CartoonShoes;
|
|
48
|
+
shoeColor?: string;
|
|
49
|
+
socks?: string;
|
|
50
|
+
/** Hair ties, beads, rollers, earrings. */
|
|
51
|
+
accent?: string;
|
|
52
|
+
apron?: string;
|
|
53
|
+
/** Glasses (`"sun"`: dark lenses). */
|
|
54
|
+
glasses?: boolean | "sun";
|
|
55
|
+
/** A cap (peak in front or turned back) or a flat cap, in `hatColor`. */
|
|
56
|
+
hat?: CartoonHat;
|
|
57
|
+
hatColor?: string;
|
|
58
|
+
/** A tie (with a shirt or a blazer). */
|
|
59
|
+
tie?: string;
|
|
60
|
+
/** A sweater thrown over the shoulders, the sleeves knotted on the chest. */
|
|
61
|
+
sweater?: string;
|
|
62
|
+
necklace?: {
|
|
63
|
+
kind: "pearls" | "chain";
|
|
64
|
+
color?: string;
|
|
65
|
+
};
|
|
66
|
+
suspenders?: string;
|
|
67
|
+
/** A wristwatch on the near arm. */
|
|
68
|
+
watch?: string;
|
|
69
|
+
moustache?: boolean;
|
|
70
|
+
goatee?: boolean;
|
|
71
|
+
freckles?: boolean;
|
|
72
|
+
earrings?: boolean;
|
|
73
|
+
wrinkles?: boolean;
|
|
74
|
+
lipstick?: string;
|
|
75
|
+
/** A shaved line on the side of a buzz cut. */
|
|
76
|
+
hairLine?: boolean;
|
|
77
|
+
/** Print on the top (colour `stripe`, default `top2`). */
|
|
78
|
+
pattern?: CartoonPattern;
|
|
79
|
+
stripe?: string;
|
|
80
|
+
/** Height of each band of a `stripes` print or top, as a fraction of the torso (default 0.13; a football hoop ≈ 0.25). */
|
|
81
|
+
stripeWidth?: number;
|
|
82
|
+
/** Something in the shirt pocket, sticking out (a small box: a pack of cards, cigarettes…): its colour and top band. */
|
|
83
|
+
pocketItem?: {
|
|
84
|
+
color: string;
|
|
85
|
+
band?: string;
|
|
86
|
+
};
|
|
87
|
+
/** Something resting behind the ear: a pencil or a cigarette. */
|
|
88
|
+
earItem?: "pencil" | "cigarette";
|
|
89
|
+
/** Rosy nose and cheeks (a cold, the sun, a drink). */
|
|
90
|
+
flushed?: boolean;
|
|
91
|
+
/** A shadow of beard on the jaw and upper lip. */
|
|
92
|
+
stubble?: boolean;
|
|
93
|
+
/** A bridal veil over the hair, down the back (its colour). */
|
|
94
|
+
veil?: string;
|
|
95
|
+
/** A flower in the jacket's lapel (its colour). */
|
|
96
|
+
boutonniere?: string;
|
|
97
|
+
/** A cape from the shoulders down the back to the knees (its colour). */
|
|
98
|
+
cape?: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* A character's anatomy: every measure the drawings, the 3D skeleton, the director and the physics
|
|
102
|
+
* are made from — one document, kept with the character (`meta.anatomy`), editable, and checked by
|
|
103
|
+
* rules (`checkAnatomy`) before anything is drawn. `cartoonAnatomy(look)` derives it from a look.
|
|
104
|
+
*/
|
|
105
|
+
export interface CartoonAnatomy {
|
|
106
|
+
/**
|
|
107
|
+
* Body (character units): hip height, torso length, neck length, head radius (`head`: the face's
|
|
108
|
+
* unit); half widths of the shoulders, waist and hips, half depth of the body — before the look's
|
|
109
|
+
* shaping (`female`: narrower waist, wider hips; `heavy`: a belly). `arm`: the arm's length from
|
|
110
|
+
* the shoulder to the wrist (default `armLength`: 0.9 × torso + 0.34 × hip — the hands at
|
|
111
|
+
* mid-thigh; the modern style's short arms bring them to the hips).
|
|
112
|
+
*/
|
|
113
|
+
body: {
|
|
114
|
+
hip: number;
|
|
115
|
+
torso: number;
|
|
116
|
+
neck: number;
|
|
117
|
+
head: number;
|
|
118
|
+
shoulders: number;
|
|
119
|
+
waist: number;
|
|
120
|
+
hips: number;
|
|
121
|
+
depth: number;
|
|
122
|
+
arm?: number;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Arm diameters at the shoulder and the wrist; leg thickness at the knee and the ankle (the shin's
|
|
126
|
+
* diameters there; the thigh is drawn `THIGH_R` × the knee value in radius at the hip, 1.6 ×
|
|
127
|
+
* across); hand radius; shoe scale; the calf's swell (× the shin's width below the knee).
|
|
128
|
+
*/
|
|
129
|
+
limbs: {
|
|
130
|
+
arm: [number, number];
|
|
131
|
+
leg: [number, number];
|
|
132
|
+
hand: number;
|
|
133
|
+
shoe: number;
|
|
134
|
+
calf: number;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Face, in head radii from the head's centre (down is +): eye height, eye centre's distance from
|
|
138
|
+
* the middle, eye half width and half height, pupil radius; gap between eye and brow; nose height,
|
|
139
|
+
* nose half sizes (width, height, depth) and how far it stands out of the face; mouth height and
|
|
140
|
+
* half width (the widest it gets), how squarely a mouth corner must face the camera to be drawn
|
|
141
|
+
* (0..1: higher keeps it off the face's edge in a three-quarter view); ear height; chin bottom.
|
|
142
|
+
*/
|
|
143
|
+
face: {
|
|
144
|
+
eyeY: number;
|
|
145
|
+
eyeX: number;
|
|
146
|
+
eye: [number, number];
|
|
147
|
+
pupil: number;
|
|
148
|
+
brow: number;
|
|
149
|
+
noseY: number;
|
|
150
|
+
nose: [number, number, number];
|
|
151
|
+
noseOut: number;
|
|
152
|
+
mouthY: number;
|
|
153
|
+
mouthW: number;
|
|
154
|
+
mouthMargin: number;
|
|
155
|
+
earY: number;
|
|
156
|
+
chinY: number;
|
|
157
|
+
};
|
|
158
|
+
/** Secondary motion: [stiffness, damping] (0..1) of the body's jiggle, forearms, head, ponytail, big hair. */
|
|
159
|
+
physics: {
|
|
160
|
+
body: [number, number];
|
|
161
|
+
forearms: [number, number];
|
|
162
|
+
head: [number, number];
|
|
163
|
+
tail: [number, number];
|
|
164
|
+
hair: [number, number];
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
/** The arm's length (shoulder to wrist) of an anatomy: `body.arm`, or 0.9 × torso + 0.34 × hip. */
|
|
168
|
+
export declare const armLength: (B: CartoonAnatomy["body"]) => number;
|
|
169
|
+
/** Thigh radius at the hip, as a fraction of `limbs.leg[0]` (the legs are drawn and checked with it). */
|
|
170
|
+
export declare const THIGH_R = 0.8;
|
|
171
|
+
/** The anatomy of a look (the defaults of its build, limbs, height, nose and jaw). */
|
|
172
|
+
export declare function cartoonAnatomy(look: CartoonLook): CartoonAnatomy;
|
|
173
|
+
/** A broken rule of an anatomy: `error` (it would draw wrong) or `warning`. */
|
|
174
|
+
export interface AnatomyIssue {
|
|
175
|
+
severity: "error" | "warning";
|
|
176
|
+
rule: string;
|
|
177
|
+
message: string;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* The rules an anatomy must follow: features that do not touch (the mouth below the nose with room
|
|
181
|
+
* for a smile, the nose below the eyes, the eyes apart and inside the face), a chin under the mouth,
|
|
182
|
+
* limbs that fit the body, hands that reach the lap seated, physics in range.
|
|
183
|
+
*/
|
|
184
|
+
export declare function checkAnatomy(a: CartoonAnatomy): AnatomyIssue[];
|
|
185
|
+
/**
|
|
186
|
+
* A look's anatomy as a style draws it: wide eyes closer together with dot pupils, a bigger head;
|
|
187
|
+
* `big` eyes and `cartoon` proportions: a big head on a short, chunky body; `round` eyes and `tv`
|
|
188
|
+
* proportions (the modern default): big round eyes nearly touching, a natural figure with long slim
|
|
189
|
+
* legs and thin limbs.
|
|
190
|
+
*/
|
|
191
|
+
export declare function styledAnatomy(a: CartoonAnatomy, style: CartoonOptions["style"], look?: CartoonLook): CartoonAnatomy;
|
|
192
|
+
export interface PieceOpts {
|
|
193
|
+
sdf: Sdf;
|
|
194
|
+
theta: ViewLike;
|
|
195
|
+
/** Colour region of a surface point (palette key), else `base`. */
|
|
196
|
+
color?: (p: V3) => string;
|
|
197
|
+
base: string;
|
|
198
|
+
/** Regions outlined with a thin line (collars, pockets…). */
|
|
199
|
+
edges?: string[];
|
|
200
|
+
/** Silhouette field to use instead of the cast's (a piece seen only where it is in front). */
|
|
201
|
+
field?: ArrayLike<number>;
|
|
202
|
+
/** Extra shadow on a cell (cast shadows: under the hair, under the chin). */
|
|
203
|
+
shadow?: (cell: number) => boolean;
|
|
204
|
+
/** Draw the outline only where this holds (cells). */
|
|
205
|
+
keep?: (i: number, j: number) => boolean;
|
|
206
|
+
/** Palette key of the outline (default: `base`). */
|
|
207
|
+
line?: string;
|
|
208
|
+
/** Scale of the shading: normals averaged over this distance (curls shade as one mass). */
|
|
209
|
+
smooth?: number;
|
|
210
|
+
/** Cel shadows drawn (default true; false: flat colour). */
|
|
211
|
+
shade?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Colour regions traced with the silhouette's own edge where they reach it (default: the style's,
|
|
214
|
+
* `SNUG`), so the base colour never peeks out at a region's corner on the outline.
|
|
215
|
+
*/
|
|
216
|
+
snug?: boolean;
|
|
217
|
+
/** Draw the `edges` regions' lines only where this holds (cells): not along a cut the drawing goes on from. */
|
|
218
|
+
edgeKeep?: (i: number, j: number) => boolean;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* A volume drawn flat, the way a cartoon is painted: the fill, its colour regions, cel shading
|
|
222
|
+
* (the side turned away from the light, cast shadows) and an outline in a dark tone of its colour.
|
|
223
|
+
*/
|
|
224
|
+
export declare function piece(c: Cast, g: Grid, o: PieceOpts): string;
|
|
225
|
+
/** Weight of the `gape` morph that draws the jaw fully unhinged (weight 1: a big cartoon gape). */
|
|
226
|
+
export declare const GAPE_FULL = 2;
|
|
227
|
+
/** Degrees the 3D `jaw` bone turns a weight of gape (its occluder follows the drawn jaw down). */
|
|
228
|
+
export declare const JAW_TURN = 36;
|
|
229
|
+
/**
|
|
230
|
+
* How much of the upper arm (from the shoulder) is drawn under the head whatever its depth (the
|
|
231
|
+
* cartoon convention of a head drawn over its shoulders); the rest of the arm keeps its true depth.
|
|
232
|
+
*/
|
|
233
|
+
export declare const SHOULDER_UNDER = 0.5;
|
|
234
|
+
/**
|
|
235
|
+
* How the drawing is inked and painted. The default, `modern`, is a modern TV cartoon: a natural
|
|
236
|
+
* figure about five heads tall (`proportions: "tv"`), big round eyes nearly touching with dot pupils
|
|
237
|
+
* (`eyes: "round"`), straight trouser legs, thin tapering arms, one-silhouette hands, simple flat
|
|
238
|
+
* shoes, one thin even ink line, flat colours. (The old modern look — a big head on a short chunky
|
|
239
|
+
* body, big eyes with glints, blush — is `{ proportions: "cartoon", eyes: "big", blush: true, … }`.)
|
|
240
|
+
* `painted` (the default before
|
|
241
|
+
* 0.2) keeps the look's own proportions, lines in a dark tone of each colour, cel shadows, tapered
|
|
242
|
+
* arms and fists. `flat` is a flat TV cartoon — one ink for every line, flat colours with no cel
|
|
243
|
+
* shadow (the lighting's shading, if any, is the scene's). A partial `CartoonStyle` object refines
|
|
244
|
+
* `painted`.
|
|
245
|
+
*/
|
|
246
|
+
export interface CartoonStyle {
|
|
247
|
+
/** One ink for every line (e.g. `#1b1b1b`); default: a dark tone of each colour. */
|
|
248
|
+
ink?: string;
|
|
249
|
+
/** Cel shadows drawn (default true). */
|
|
250
|
+
shade?: boolean;
|
|
251
|
+
/** One line weight for every line (outlines, seams, lips, hands); default: the painted weights (2.8 outlines, thinner seams). */
|
|
252
|
+
line?: number;
|
|
253
|
+
/**
|
|
254
|
+
* `tapered` (default): arms thicker at the shoulder than the wrist, a round elbow, puffed short
|
|
255
|
+
* sleeves, round shoulder caps. `tube`: noodle arms of one width, the sleeve flush with the arm
|
|
256
|
+
* (just a hem line), no shoulder caps — a flat TV cartoon's.
|
|
257
|
+
*/
|
|
258
|
+
limbs?: "tapered" | "tube";
|
|
259
|
+
/** The hands' resting shape (default `fist`; a flat TV cartoon's hang `open`). */
|
|
260
|
+
hands?: "fist" | "open";
|
|
261
|
+
/**
|
|
262
|
+
* `oval` (painted default): the eyes of the look's anatomy, a glint in the pupil. `wide`: a flat TV
|
|
263
|
+
* cartoon's — bigger and closer together, a dot pupil with no glint. (No lower-lid line: under a
|
|
264
|
+
* nose this close to the eyes, two of them read as a moustache.) `big`: big eyes a little lower on
|
|
265
|
+
* the head, a big pupil with a large and a small glint. `round` (modern default): big round eyes
|
|
266
|
+
* nearly touching, a small dot pupil, no glint, thin brows.
|
|
267
|
+
*/
|
|
268
|
+
eyes?: "oval" | "wide" | "big" | "round";
|
|
269
|
+
/** `upright` (default): the arms hang straight. `slouch`: shoulders a little lower, the elbows bent, the hands forward. */
|
|
270
|
+
posture?: "upright" | "slouch";
|
|
271
|
+
/**
|
|
272
|
+
* `normal` (painted default). `bigHead`: a bigger head (more on children) on a thinner neck.
|
|
273
|
+
* `cartoon`: about three heads tall — a big head, short legs, a compact torso, thick noodle limbs,
|
|
274
|
+
* big hands and shoes. `tv` (modern default): a natural figure, about five heads tall (fewer for
|
|
275
|
+
* the young) — narrow hips the torso goes straight down into, long slim legs, thin tapering arms to
|
|
276
|
+
* mid-thigh, simple four-finger hands drawn as one silhouette, the shirt's hem one ink line.
|
|
277
|
+
*/
|
|
278
|
+
proportions?: "normal" | "bigHead" | "cartoon" | "tv";
|
|
279
|
+
/** Soft rosy cheeks (off in the preset styles). */
|
|
280
|
+
blush?: boolean;
|
|
281
|
+
}
|
|
282
|
+
export interface CartoonOptions {
|
|
283
|
+
pitch?: number;
|
|
284
|
+
/**
|
|
285
|
+
* Inking, painting and proportions: `"modern"` (default: a natural TV-cartoon figure, big round
|
|
286
|
+
* eyes with dot pupils, one thin even ink line, flat colours), `"painted"` (the look's own proportions, coloured lines, fists),
|
|
287
|
+
* `"flat"` (one near-black ink and one line weight, no cel shadow, tube arms, open hands), or a
|
|
288
|
+
* `CartoonStyle` refining `painted`.
|
|
289
|
+
*/
|
|
290
|
+
style?: "modern" | "painted" | "flat" | CartoonStyle;
|
|
291
|
+
/** The character's anatomy (default `cartoonAnatomy(look)`): an edited one changes its body, face and physics. */
|
|
292
|
+
anatomy?: CartoonAnatomy;
|
|
293
|
+
}
|
|
294
|
+
export declare function cartoonCharacter(look: CartoonLook, opts?: CartoonOptions): ToonDoc;
|
|
295
|
+
/**
|
|
296
|
+
* Every colour gets a shadow tone (`<key>Shade`, darker and a little cooler) and a line tone
|
|
297
|
+
* (`<key>Line`, darker than its shadow: coloured lines instead of black ones).
|
|
298
|
+
*/
|
|
299
|
+
export declare function withTones(palette: Record<string, string>, o?: {
|
|
300
|
+
ink?: string;
|
|
301
|
+
}): Record<string, string>;
|
|
302
|
+
/**
|
|
303
|
+
* Director measurements of a cartoon character: the skeleton's (`rigInfo`), its `extent` and
|
|
304
|
+
* `height` measured from the character as drawn at rest in the main view (`drawnBounds`: a big
|
|
305
|
+
* head, hair, a cap's peak, a belly — whatever the anatomy draws; the doc was built at its pitch),
|
|
306
|
+
* the body's half depth from its anatomy.
|
|
307
|
+
*/
|
|
308
|
+
export declare function cartoonInfo(doc: ToonDoc, look: CartoonLook, opts?: CartoonOptions): RigInfo;
|
|
309
|
+
/**
|
|
310
|
+
* How things are held (2.5D characters): for each kind of hand-held object, the gesture clip, the
|
|
311
|
+
* 3D direction of the object's long axis and of its front (body space: x right, y down, z towards the
|
|
312
|
+
* viewer seen from the front), and its size relative to the holder's scale. From ergonomics studies of
|
|
313
|
+
* phone use (held in front of the lower chest about a forearm from the eyes, the screen tilted up
|
|
314
|
+
* towards them, the head bent forward) and from life drawing (the palm and fingers behind the object,
|
|
315
|
+
* the thumb over its edge: seen from the front or the side you see the phone's back).
|
|
316
|
+
*
|
|
317
|
+
* `holdFit(kind, grip, top)` is the `grab` action's `fit` for an object drawn upright with its grip at
|
|
318
|
+
* `grip` and its top at `top` (its own art's coordinates), its front (`art`) the face the holder looks
|
|
319
|
+
* at and its `back` drawn as seen from behind.
|
|
320
|
+
*/
|
|
321
|
+
export declare const HOLD: {
|
|
322
|
+
/** A phone being used: one hand, thumb scrolling (`textingTwo`: both thumbs). */
|
|
323
|
+
readonly phone: {
|
|
324
|
+
readonly clip: "texting";
|
|
325
|
+
readonly dir: V3;
|
|
326
|
+
readonly face: V3;
|
|
327
|
+
readonly scale: 0.5;
|
|
328
|
+
};
|
|
329
|
+
/** A box carried in both hands in front of the belly (`carry`; `boxFit`: its sides on the two hands). */
|
|
330
|
+
readonly box: {
|
|
331
|
+
readonly clip: "carry";
|
|
332
|
+
readonly dir: V3;
|
|
333
|
+
readonly face: V3;
|
|
334
|
+
readonly scale: 1;
|
|
335
|
+
};
|
|
336
|
+
/** A book or a tablet being read in both hands, a little lower and further than a phone. */
|
|
337
|
+
readonly book: {
|
|
338
|
+
readonly clip: "read";
|
|
339
|
+
readonly dir: V3;
|
|
340
|
+
readonly face: V3;
|
|
341
|
+
readonly scale: 0.9;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
export declare function holdFit(kind: keyof typeof HOLD, grip: [number, number], top: [number, number]): ({
|
|
345
|
+
dir?: undefined;
|
|
346
|
+
point: [number, number];
|
|
347
|
+
anchor: string;
|
|
348
|
+
face?: undefined;
|
|
349
|
+
fixed?: undefined;
|
|
350
|
+
} | {
|
|
351
|
+
anchor?: undefined;
|
|
352
|
+
point: [number, number];
|
|
353
|
+
dir: V3;
|
|
354
|
+
face: V3;
|
|
355
|
+
fixed: boolean;
|
|
356
|
+
})[];
|
|
357
|
+
/** The `grab`'s `also` for a two-handed hold (`textingTwo`, `read`): the far hand holds it too. */
|
|
358
|
+
export declare const holdBoth: string[];
|
|
359
|
+
/**
|
|
360
|
+
* The `grab`'s `fit` for something carried between the two hands (a box, a tray): its left side's
|
|
361
|
+
* point on the near hand, turned so its right side's point is on the far hand (its own art's
|
|
362
|
+
* coordinates). Grab it at `hand` with `also: holdBoth`, play `carry`.
|
|
363
|
+
*/
|
|
364
|
+
export declare function boxFit(left: [number, number], right: [number, number]): {
|
|
365
|
+
point: [number, number];
|
|
366
|
+
anchor: string;
|
|
367
|
+
}[];
|
|
368
|
+
//# sourceMappingURL=cartoon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartoon.d.ts","sourceRoot":"","sources":["../src/cartoon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,KAAK,OAAO,EAAgH,MAAM,oBAAoB,CAAC;AAGhK,OAAO,EAAE,KAAK,OAAO,EAAW,MAAM,QAAQ,CAAC;AAG/C,OAAO,EACM,KAAK,IAAI,EAAE,KAAK,IAAI,EAAW,KAAK,GAAG,EAAE,KAAK,EAAE,EAAa,KAAK,QAAQ,EAGtF,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,G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