Puppet Stage: a browser puppet that lip-syncs to local text-to-speech and takes stage directions, live or from a screenplay.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-face.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-face.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-face.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

Dan Quellhorst Converse: characters know they have bodies 52ca998 4 months, 1 week ago History
puppet.svg · 3.1 KB · 69 lines
1<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
2 <defs>
3 <radialGradient id="sunny-shine" cx="36%" cy="30%" r="75%">
4 <stop offset="0%" stop-color="#ffe999"/>
5 <stop offset="55%" stop-color="#ffcc3d"/>
6 <stop offset="100%" stop-color="#ffbb1f"/>
7 </radialGradient>
8 </defs>
9
10 <g id="puppet" style="transform-box:fill-box;transform-origin:50% 100%">
11
12 <g id="head" style="transform-box:fill-box;transform-origin:50% 50%">
13 <circle cx="100" cy="100" r="80" fill="url(#sunny-shine)" stroke="#f0a400" stroke-width="3"/>
14 <ellipse cx="62" cy="42" rx="16" ry="8" fill="#fff" opacity="0.10"/>
15
16 <g id="brows">
17 <path id="brow-left" style="transform-box:fill-box;transform-origin:50% 50%"
18 d="M56,66 Q72,54 88,64" stroke="#c9790a" stroke-width="6.5" fill="none" stroke-linecap="round"/>
19 <path id="brow-right" style="transform-box:fill-box;transform-origin:50% 50%"
20 d="M112,64 Q128,54 144,66" stroke="#c9790a" stroke-width="6.5" fill="none" stroke-linecap="round"/>
21 </g>
22
23 <g id="eyes" style="transform-box:fill-box;transform-origin:50% 50%">
24 <ellipse id="eye-left" cx="72" cy="92" rx="11" ry="15" fill="#3c2a08"/>
25 <ellipse id="eye-right" cx="128" cy="92" rx="11" ry="15" fill="#3c2a08"/>
26 <g id="pupils">
27 <circle cx="76" cy="86" r="4" fill="#fff" opacity="0.92"/>
28 <circle cx="132" cy="86" r="4" fill="#fff" opacity="0.92"/>
29 </g>
30 </g>
31
32 <!-- Rhubarb mouth shapes: exactly one visible at a time.
33 Discipline: one bold simple shape per viseme — these render huge in face view. -->
34 <g id="mouths">
35 <g id="mouth-X">
36 <path d="M74,134 Q100,152 126,134" stroke="#8a5a12" stroke-width="8" fill="none" stroke-linecap="round"/>
37 </g>
38 <g id="mouth-A">
39 <path d="M84,142 Q100,145 116,142" stroke="#8a5a12" stroke-width="7" fill="none" stroke-linecap="round"/>
40 </g>
41 <g id="mouth-B">
42 <ellipse cx="100" cy="140" rx="14" ry="8" fill="#5c3a10"/>
43 <path d="M89,136 Q100,133.5 111,136 L111,139 Q100,137 89,139 Z" fill="#fff" opacity="0.9"/>
44 </g>
45 <g id="mouth-C">
46 <ellipse cx="100" cy="140" rx="15" ry="11" fill="#5c3a10"/>
47 </g>
48 <g id="mouth-D">
49 <ellipse cx="100" cy="140" rx="21" ry="16" fill="#5c3a10"/>
50 <path d="M88,150 Q100,142 112,150 Q106,156 100,156 Q94,156 88,150 Z" fill="#ff8a80"/>
51 </g>
52 <g id="mouth-E">
53 <circle cx="100" cy="140" r="11" fill="#5c3a10"/>
54 </g>
55 <g id="mouth-F">
56 <circle cx="100" cy="140" r="7" fill="#5c3a10"/>
57 </g>
58 <g id="mouth-G">
59 <path d="M86,138 Q100,135.5 114,138 L114,143 Q100,141 86,143 Z" fill="#fff" opacity="0.95"/>
60 <path d="M84,148 Q100,152 116,148" stroke="#8a5a12" stroke-width="6" fill="none" stroke-linecap="round"/>
61 </g>
62 <g id="mouth-H">
63 <ellipse cx="100" cy="140" rx="14" ry="11" fill="#5c3a10"/>
64 <path d="M93,146 Q100,133 107,146 Q100,150 93,146 Z" fill="#ff8a80"/>
65 </g>
66 </g>
67 </g>
68 </g>
69</svg>