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 · 4.6 KB · 96 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="84" y="222" width="16" height="38" rx="8" fill="#2e3a59"/> |
| 6 | <rect id="leg-right" x="104" y="222" width="16" height="38" rx="8" fill="#2e3a59"/> |
| 7 | <ellipse cx="91" cy="264" rx="18" ry="8" fill="#1a1a1a"/> |
| 8 | <ellipse cx="113" cy="264" rx="18" ry="8" fill="#1a1a1a"/> |
| 9 | </g> |
| 10 | |
| 11 | <g id="arm-left" style="transform-box:fill-box;transform-origin:75% 8%"> |
| 12 | <path d="M64,150 Q42,174 48,200" stroke="#1a1a1a" stroke-width="14" fill="none" stroke-linecap="round"/> |
| 13 | <circle cx="48" cy="202" r="11" fill="#ffffff" stroke="#1a1a1a" stroke-width="3"/> |
| 14 | </g> |
| 15 | <g id="arm-right" style="transform-box:fill-box;transform-origin:25% 8%"> |
| 16 | <path d="M136,150 Q158,174 152,200" stroke="#1a1a1a" stroke-width="14" fill="none" stroke-linecap="round"/> |
| 17 | <circle cx="152" cy="202" r="11" fill="#ffffff" stroke="#1a1a1a" stroke-width="3"/> |
| 18 | </g> |
| 19 | |
| 20 | <g id="body"> |
| 21 | <path d="M70,150 Q100,136 130,150 L136,224 Q100,241 64,224 Z" fill="#a8362f" stroke="#1a1a1a" stroke-width="3"/> |
| 22 | <circle cx="100" cy="175" r="4" fill="#ffffff" stroke="#1a1a1a" stroke-width="1.5"/> |
| 23 | <circle cx="100" cy="195" r="4" fill="#ffffff" stroke="#1a1a1a" stroke-width="1.5"/> |
| 24 | <path d="M92,150 L100,158 L108,150 L104,146 Q100,150 96,146 Z" fill="#1a1a1a"/> |
| 25 | </g> |
| 26 | |
| 27 | <g id="head" style="transform-box:fill-box;transform-origin:50% 88%"> |
| 28 | <circle cx="100" cy="95" r="58" fill="#f6dfae" stroke="#1a1a1a" stroke-width="4"/> |
| 29 | |
| 30 | <ellipse id="cheek-left" cx="66" cy="112" rx="8" ry="5" fill="#e0777a" opacity="0.35"/> |
| 31 | <ellipse id="cheek-right" cx="134" cy="112" rx="8" ry="5" fill="#e0777a" opacity="0.35"/> |
| 32 | |
| 33 | <g id="brows"> |
| 34 | <path id="brow-left" style="transform-box:fill-box;transform-origin:50% 50%" |
| 35 | d="M66,66 Q78,58 90,65" stroke="#1a1a1a" stroke-width="5" fill="none" stroke-linecap="round"/> |
| 36 | <path id="brow-right" style="transform-box:fill-box;transform-origin:50% 50%" |
| 37 | d="M110,65 Q122,58 134,66" stroke="#1a1a1a" stroke-width="5" fill="none" stroke-linecap="round"/> |
| 38 | </g> |
| 39 | |
| 40 | <!-- Pie-cut eyes: white sclera behind a black wedge-cut pupil, classic rubber-hose look --> |
| 41 | <g id="eyes" style="transform-box:fill-box;transform-origin:50% 50%"> |
| 42 | <g id="eye-left"> |
| 43 | <ellipse cx="80" cy="92" rx="14" ry="16" fill="#ffffff" stroke="#1a1a1a" stroke-width="3"/> |
| 44 | </g> |
| 45 | <g id="eye-right"> |
| 46 | <ellipse cx="120" cy="92" rx="14" ry="16" fill="#ffffff" stroke="#1a1a1a" stroke-width="3"/> |
| 47 | </g> |
| 48 | <g id="pupils"> |
| 49 | <circle cx="80" cy="93" r="8" fill="#1a1a1a"/> |
| 50 | <circle cx="120" cy="93" r="8" fill="#1a1a1a"/> |
| 51 | <circle cx="82.6" cy="90.4" r="2.4" fill="#ffffff"/> |
| 52 | <circle cx="122.6" cy="90.4" r="2.4" fill="#ffffff"/> |
| 53 | </g> |
| 54 | </g> |
| 55 | |
| 56 | <g id="nose"> |
| 57 | <path d="M96,106 Q100,112 104,106 Q100,110 96,106 Z" fill="#1a1a1a"/> |
| 58 | </g> |
| 59 | |
| 60 | <!-- Nine viseme mouth shapes, flat cartoon style: exactly one visible at a time --> |
| 61 | <g id="mouths"> |
| 62 | <g id="mouth-X"> |
| 63 | <path d="M85,127 Q100,133 115,127" stroke="#1a1a1a" stroke-width="4" fill="none" stroke-linecap="round"/> |
| 64 | </g> |
| 65 | <g id="mouth-A"> |
| 66 | <path d="M85,129 L115,129" stroke="#1a1a1a" stroke-width="5" fill="none" stroke-linecap="round"/> |
| 67 | </g> |
| 68 | <g id="mouth-B"> |
| 69 | <path d="M86,124 Q100,120 114,124 Q114,135 100,136 Q86,135 86,124 Z" fill="#1a1a1a"/> |
| 70 | <rect x="90" y="124" width="20" height="5" rx="2" fill="#ffffff"/> |
| 71 | </g> |
| 72 | <g id="mouth-C"> |
| 73 | <ellipse cx="100" cy="129" rx="13" ry="8.5" fill="#1a1a1a"/> |
| 74 | </g> |
| 75 | <g id="mouth-D"> |
| 76 | <ellipse cx="100" cy="130" rx="17" ry="13" fill="#1a1a1a"/> |
| 77 | <ellipse cx="100" cy="138" rx="9" ry="5" fill="#e0777a"/> |
| 78 | </g> |
| 79 | <g id="mouth-E"> |
| 80 | <circle cx="100" cy="129" r="8" fill="#1a1a1a"/> |
| 81 | </g> |
| 82 | <g id="mouth-F"> |
| 83 | <ellipse cx="100" cy="129" rx="5.5" ry="7.5" fill="#1a1a1a" stroke="#a8362f" stroke-width="3"/> |
| 84 | </g> |
| 85 | <g id="mouth-G"> |
| 86 | <rect x="89" y="124" width="22" height="6.5" rx="2.5" fill="#ffffff" stroke="#1a1a1a" stroke-width="1.5"/> |
| 87 | <path d="M86,134 Q100,138 114,134" stroke="#1a1a1a" stroke-width="4" fill="none" stroke-linecap="round"/> |
| 88 | </g> |
| 89 | <g id="mouth-H"> |
| 90 | <ellipse cx="100" cy="129" rx="12" ry="9.5" fill="#1a1a1a"/> |
| 91 | <ellipse cx="100" cy="123.5" rx="6.5" ry="3.5" fill="#e0777a"/> |
| 92 | </g> |
| 93 | </g> |
| 94 | </g> |
| 95 | </g> |
| 96 | </svg> |