askrobots / dbbasic-face
Public
Puppet Stage: a browser puppet that lip-syncs to local text-to-speech and takes stage directions, live or from a screenplay.
puppet.svg · 6.0 KB · 112 lines
| 1 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300"> |
| 2 | <g id="puppet" style="transform-box:fill-box;transform-origin:50% 100%"> |
| 3 | |
| 4 | <g id="legs"> |
| 5 | <rect id="leg-left" x="82" y="208" width="16" height="34" rx="7" fill="#f6dfae" stroke="#1a1a1a" stroke-width="2"/> |
| 6 | <rect id="leg-right" x="102" y="208" width="16" height="34" rx="7" fill="#f6dfae" stroke="#1a1a1a" stroke-width="2"/> |
| 7 | <ellipse cx="90" cy="246" rx="17" ry="7" fill="#1a1a1a"/> |
| 8 | <ellipse cx="110" cy="246" rx="17" ry="7" fill="#1a1a1a"/> |
| 9 | <path d="M80,241 Q90,248 100,241" stroke="#c65a72" stroke-width="2.5" fill="none" opacity="0.8"/> |
| 10 | <path d="M100,241 Q110,248 120,241" stroke="#c65a72" stroke-width="2.5" fill="none" opacity="0.8"/> |
| 11 | </g> |
| 12 | |
| 13 | <g id="arm-left" style="transform-box:fill-box;transform-origin:75% 8%"> |
| 14 | <path d="M70,152 Q46,172 50,198" stroke="#1a1a1a" stroke-width="13" fill="none" stroke-linecap="round"/> |
| 15 | <circle cx="50" cy="200" r="10.5" fill="#ffffff" stroke="#1a1a1a" stroke-width="3"/> |
| 16 | <path d="M60,146 Q76,142 81,155 Q72,165 58,159 Q56,151 60,146 Z" fill="#f6dfae" stroke="#1a1a1a" stroke-width="2.5"/> |
| 17 | </g> |
| 18 | <g id="arm-right" style="transform-box:fill-box;transform-origin:25% 8%"> |
| 19 | <path d="M130,152 Q154,172 150,198" stroke="#1a1a1a" stroke-width="13" fill="none" stroke-linecap="round"/> |
| 20 | <circle cx="150" cy="200" r="10.5" fill="#ffffff" stroke="#1a1a1a" stroke-width="3"/> |
| 21 | <path d="M140,146 Q124,142 119,155 Q128,165 142,159 Q144,151 140,146 Z" fill="#f6dfae" stroke="#1a1a1a" stroke-width="2.5"/> |
| 22 | </g> |
| 23 | |
| 24 | <g id="body"> |
| 25 | <path d="M74,148 Q100,135 126,148 L118,172 Q140,190 148,210 Q100,225 52,210 Q60,190 82,172 Z" fill="#2f7a72" stroke="#1a1a1a" stroke-width="3"/> |
| 26 | <path d="M76,149 Q100,138 124,149 L116,173 Q100,180 84,173 Z" fill="#f6dfae" stroke="#1a1a1a" stroke-width="2.5"/> |
| 27 | <path d="M83,173 Q100,180 117,173" stroke="#c65a72" stroke-width="4" fill="none" stroke-linecap="round"/> |
| 28 | <circle cx="100" cy="156" r="2.6" fill="#1a1a1a"/> |
| 29 | <circle cx="100" cy="164" r="2.6" fill="#1a1a1a"/> |
| 30 | </g> |
| 31 | |
| 32 | <g id="head" style="transform-box:fill-box;transform-origin:50% 88%"> |
| 33 | <circle cx="100" cy="95" r="58" fill="#f6dfae" stroke="#1a1a1a" stroke-width="4"/> |
| 34 | |
| 35 | <path d="M48,126 C42,116 40,102 40,88 C40,54 66,30 100,30 |
| 36 | C134,30 160,54 160,88 C160,102 158,116 152,126 |
| 37 | C146,118 140,114 133,111 C138,100 138,88 133,78 |
| 38 | C126,63 114,55 100,55 C86,55 74,63 67,78 |
| 39 | C62,88 62,100 67,111 C60,114 54,118 48,126 Z" |
| 40 | fill="#1a1a1a"/> |
| 41 | <path d="M48,84 Q100,68 152,84" stroke="#c65a72" stroke-width="4.5" fill="none" stroke-linecap="round"/> |
| 42 | <circle cx="150" cy="84" r="4.5" fill="#c65a72" stroke="#1a1a1a" stroke-width="1"/> |
| 43 | |
| 44 | <ellipse id="cheek-left" cx="66" cy="112" rx="8" ry="5" fill="#e0777a" opacity="0.4"/> |
| 45 | <ellipse id="cheek-right" cx="134" cy="112" rx="8" ry="5" fill="#e0777a" opacity="0.4"/> |
| 46 | |
| 47 | <g id="brows"> |
| 48 | <path id="brow-left" style="transform-box:fill-box;transform-origin:50% 50%" |
| 49 | d="M68,62 Q80,52 92,60" stroke="#1a1a1a" stroke-width="3.6" fill="none" stroke-linecap="round"/> |
| 50 | <path id="brow-right" style="transform-box:fill-box;transform-origin:50% 50%" |
| 51 | d="M108,60 Q120,52 132,62" stroke="#1a1a1a" stroke-width="3.6" fill="none" stroke-linecap="round"/> |
| 52 | </g> |
| 53 | |
| 54 | <!-- Pie-cut eyes: white sclera behind a black wedge-cut pupil, classic rubber-hose look --> |
| 55 | <g id="eyes" style="transform-box:fill-box;transform-origin:50% 50%"> |
| 56 | <g id="eye-left"> |
| 57 | <ellipse cx="80" cy="92" rx="13" ry="15" fill="#ffffff" stroke="#1a1a1a" stroke-width="3"/> |
| 58 | </g> |
| 59 | <g id="eye-right"> |
| 60 | <ellipse cx="120" cy="92" rx="13" ry="15" fill="#ffffff" stroke="#1a1a1a" stroke-width="3"/> |
| 61 | </g> |
| 62 | <path d="M92,84 L98,79" stroke="#1a1a1a" stroke-width="2" fill="none" stroke-linecap="round"/> |
| 63 | <path d="M108,79 L114,84" stroke="#1a1a1a" stroke-width="2" fill="none" stroke-linecap="round"/> |
| 64 | <g id="pupils"> |
| 65 | <circle cx="79" cy="93" r="7.5" fill="#1a1a1a"/> |
| 66 | <circle cx="119" cy="93" r="7.5" fill="#1a1a1a"/> |
| 67 | <circle cx="81.4" cy="90.4" r="2.2" fill="#ffffff"/> |
| 68 | <circle cx="121.4" cy="90.4" r="2.2" fill="#ffffff"/> |
| 69 | </g> |
| 70 | </g> |
| 71 | |
| 72 | <g id="nose"> |
| 73 | <path d="M96,106 Q100,111 104,106 Q100,109.5 96,106 Z" fill="#1a1a1a"/> |
| 74 | </g> |
| 75 | |
| 76 | <!-- Nine viseme mouth shapes, flat rubber-hose style: exactly one visible at a time --> |
| 77 | <g id="mouths"> |
| 78 | <g id="mouth-X"> |
| 79 | <path d="M86,127 Q100,132 114,127" stroke="#1a1a1a" stroke-width="4" fill="none" stroke-linecap="round"/> |
| 80 | </g> |
| 81 | <g id="mouth-A"> |
| 82 | <path d="M86,129 L114,129" stroke="#1a1a1a" stroke-width="4.5" fill="none" stroke-linecap="round"/> |
| 83 | </g> |
| 84 | <g id="mouth-B"> |
| 85 | <path d="M87,124 Q100,120.5 113,124 Q113,134 100,135 Q87,134 87,124 Z" fill="#1a1a1a"/> |
| 86 | <rect x="90" y="124" width="20" height="4.5" rx="2" fill="#ffffff"/> |
| 87 | </g> |
| 88 | <g id="mouth-C"> |
| 89 | <ellipse cx="100" cy="129" rx="12" ry="8" fill="#1a1a1a"/> |
| 90 | </g> |
| 91 | <g id="mouth-D"> |
| 92 | <ellipse cx="100" cy="130" rx="16" ry="12" fill="#1a1a1a"/> |
| 93 | <ellipse cx="100" cy="137" rx="8" ry="4.5" fill="#c65a72"/> |
| 94 | </g> |
| 95 | <g id="mouth-E"> |
| 96 | <circle cx="100" cy="129" r="7.5" fill="#1a1a1a"/> |
| 97 | </g> |
| 98 | <g id="mouth-F"> |
| 99 | <ellipse cx="100" cy="129" rx="5" ry="7" fill="#1a1a1a" stroke="#2f7a72" stroke-width="3"/> |
| 100 | </g> |
| 101 | <g id="mouth-G"> |
| 102 | <rect x="90" y="124" width="20" height="6" rx="2.4" fill="#ffffff" stroke="#1a1a1a" stroke-width="1.5"/> |
| 103 | <path d="M87,133 Q100,137 113,133" stroke="#1a1a1a" stroke-width="4" fill="none" stroke-linecap="round"/> |
| 104 | </g> |
| 105 | <g id="mouth-H"> |
| 106 | <ellipse cx="100" cy="129" rx="11" ry="9" fill="#1a1a1a"/> |
| 107 | <ellipse cx="100" cy="123.5" rx="6" ry="3.2" fill="#c65a72"/> |
| 108 | </g> |
| 109 | </g> |
| 110 | </g> |
| 111 | </g> |
| 112 | </svg> |