@amg555/frameforge-mcp 2.7.3 → 2.7.7

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.
Files changed (565) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/AGENTS.md +33 -0
  3. package/CHANGELOG.md +49 -0
  4. package/CLAUDE.md +17 -6
  5. package/GEMINI.md +63 -0
  6. package/README.md +216 -426
  7. package/START_HERE.md +4 -2
  8. package/package.json +5 -3
  9. package/plugins/ai-video-editor/README.md +32 -0
  10. package/plugins/ai-video-editor/SKILL.md +152 -0
  11. package/plugins/ai-video-editor/assets/fonts/fonts.css +2409 -0
  12. package/plugins/ai-video-editor/assets/fonts/ttf/anton-400.ttf +0 -0
  13. package/plugins/ai-video-editor/assets/fonts/ttf/archivo-800.ttf +0 -0
  14. package/plugins/ai-video-editor/assets/fonts/ttf/cabin-sketch-700.ttf +0 -0
  15. package/plugins/ai-video-editor/assets/fonts/ttf/dm-sans-700.ttf +0 -0
  16. package/plugins/ai-video-editor/assets/fonts/ttf/fraunces-600.ttf +0 -0
  17. package/plugins/ai-video-editor/assets/fonts/ttf/fraunces-700.ttf +0 -0
  18. package/plugins/ai-video-editor/assets/fonts/ttf/fredoka-700.ttf +0 -0
  19. package/plugins/ai-video-editor/assets/fonts/ttf/inter-700.ttf +0 -0
  20. package/plugins/ai-video-editor/assets/fonts/ttf/inter-800.ttf +0 -0
  21. package/plugins/ai-video-editor/assets/fonts/ttf/inter-tight-800.ttf +0 -0
  22. package/plugins/ai-video-editor/assets/fonts/ttf/kalam-700.ttf +0 -0
  23. package/plugins/ai-video-editor/assets/fonts/ttf/noto-sans-devanagari-700.ttf +0 -0
  24. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-400-normal.woff2 +0 -0
  25. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-500-normal.woff2 +0 -0
  26. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-600-normal.woff2 +0 -0
  27. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-700-normal.woff2 +0 -0
  28. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-800-normal.woff2 +0 -0
  29. package/plugins/ai-video-editor/engine/hidpi.js +117 -0
  30. package/plugins/ai-video-editor/engine/page.html +43 -0
  31. package/plugins/ai-video-editor/engine/player.js +145 -0
  32. package/plugins/ai-video-editor/references/example-story-warm-canvas.js +95 -0
  33. package/plugins/ai-video-editor/references/story-guide.md +112 -0
  34. package/plugins/ai-video-editor/requirements.txt +4 -0
  35. package/plugins/ai-video-editor/styles/chalk-talk/base.js +490 -0
  36. package/plugins/ai-video-editor/styles/chalk-talk/style.json +14 -0
  37. package/plugins/ai-video-editor/styles/chalk-talk/style.md +41 -0
  38. package/plugins/ai-video-editor/styles/clean-tech/base.js +447 -0
  39. package/plugins/ai-video-editor/styles/clean-tech/style.json +15 -0
  40. package/plugins/ai-video-editor/styles/clean-tech/style.md +38 -0
  41. package/plugins/ai-video-editor/styles/creator-motion-graphics/base.js +698 -0
  42. package/plugins/ai-video-editor/styles/creator-motion-graphics/style.json +16 -0
  43. package/plugins/ai-video-editor/styles/creator-motion-graphics/style.md +39 -0
  44. package/plugins/ai-video-editor/styles/data-story/base.js +432 -0
  45. package/plugins/ai-video-editor/styles/data-story/style.json +14 -0
  46. package/plugins/ai-video-editor/styles/data-story/style.md +38 -0
  47. package/plugins/ai-video-editor/styles/index.json +103 -0
  48. package/plugins/ai-video-editor/styles/pop-info/base.js +570 -0
  49. package/plugins/ai-video-editor/styles/pop-info/style.json +13 -0
  50. package/plugins/ai-video-editor/styles/pop-info/style.md +37 -0
  51. package/plugins/ai-video-editor/styles/software-walkthrough/base.js +544 -0
  52. package/plugins/ai-video-editor/styles/software-walkthrough/style.json +15 -0
  53. package/plugins/ai-video-editor/styles/software-walkthrough/style.md +38 -0
  54. package/plugins/ai-video-editor/styles/warm-canvas/base.js +610 -0
  55. package/plugins/ai-video-editor/styles/warm-canvas/style.json +14 -0
  56. package/plugins/ai-video-editor/styles/warm-canvas/style.md +37 -0
  57. package/plugins/aiinsight-shorts/CHANGELOG.md +6 -0
  58. package/plugins/aiinsight-shorts/README.md +43 -0
  59. package/plugins/aiinsight-shorts/SKILL.md +138 -0
  60. package/plugins/aiinsight-shorts/styles/deep-dive/STYLE.md +58 -0
  61. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/cues.json +140 -0
  62. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/lines.json +67 -0
  63. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/words.json +614 -0
  64. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/words.txt +102 -0
  65. package/plugins/aiinsight-shorts/styles/deep-dive/example/fonts/Inter-Black.otf +0 -0
  66. package/plugins/aiinsight-shorts/styles/deep-dive/example/fonts/Inter-ExtraBold.otf +0 -0
  67. package/plugins/aiinsight-shorts/styles/deep-dive/example/index.html +17 -0
  68. package/plugins/aiinsight-shorts/styles/deep-dive/example/script.json +27 -0
  69. package/plugins/aiinsight-shorts/styles/deep-dive/example/sheet.html +11 -0
  70. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/board.js +62 -0
  71. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/captions.js +68 -0
  72. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/engine.js +65 -0
  73. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/human.js +128 -0
  74. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/lib.js +44 -0
  75. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/look2d.js +33 -0
  76. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/sdf.js +79 -0
  77. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/sets.js +107 -0
  78. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/timing.js +23 -0
  79. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/main.js +56 -0
  80. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/sheet.js +79 -0
  81. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/shots.js +136 -0
  82. package/plugins/aiinsight-shorts/styles/deep-dive/example/tools/capture.mjs +122 -0
  83. package/plugins/aiinsight-shorts/styles/deep-dive/example/tools/mix.py +172 -0
  84. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/LICENSE-three.txt +21 -0
  85. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  86. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  87. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  88. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  89. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  90. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/Pass.js +95 -0
  91. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  92. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  93. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  94. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/BokehShader.js +145 -0
  95. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/CopyShader.js +45 -0
  96. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  97. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/OutputShader.js +85 -0
  98. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/three.module.js +6 -0
  99. package/plugins/aiinsight-shorts/styles/deep-dive/style-sheet.png +0 -0
  100. package/plugins/aiinsight-shorts/styles/inside-out/STYLE.md +97 -0
  101. package/plugins/aiinsight-shorts/styles/inside-out/example/data/cues.json +178 -0
  102. package/plugins/aiinsight-shorts/styles/inside-out/example/data/lines.json +73 -0
  103. package/plugins/aiinsight-shorts/styles/inside-out/example/data/words.json +662 -0
  104. package/plugins/aiinsight-shorts/styles/inside-out/example/fonts/Inter-Black.otf +0 -0
  105. package/plugins/aiinsight-shorts/styles/inside-out/example/index.html +17 -0
  106. package/plugins/aiinsight-shorts/styles/inside-out/example/script.json +26 -0
  107. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/captions.js +68 -0
  108. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/kit.js +345 -0
  109. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/lib.js +44 -0
  110. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/timing.js +23 -0
  111. package/plugins/aiinsight-shorts/styles/inside-out/example/src/main.js +62 -0
  112. package/plugins/aiinsight-shorts/styles/inside-out/example/src/shots.js +195 -0
  113. package/plugins/aiinsight-shorts/styles/inside-out/example/tools/capture.mjs +122 -0
  114. package/plugins/aiinsight-shorts/styles/inside-out/example/tools/mix.py +172 -0
  115. package/plugins/aiinsight-shorts/styles/inside-out/style-sheet.png +0 -0
  116. package/plugins/aiinsight-shorts/styles/night-file/STYLE.md +36 -0
  117. package/plugins/aiinsight-shorts/styles/night-file/example/data/cues.json +146 -0
  118. package/plugins/aiinsight-shorts/styles/night-file/example/data/lines.json +73 -0
  119. package/plugins/aiinsight-shorts/styles/night-file/example/data/words.json +572 -0
  120. package/plugins/aiinsight-shorts/styles/night-file/example/data/words.txt +95 -0
  121. package/plugins/aiinsight-shorts/styles/night-file/example/fonts/FreeMonoBold.ttf +0 -0
  122. package/plugins/aiinsight-shorts/styles/night-file/example/fonts/Inter-Black.otf +0 -0
  123. package/plugins/aiinsight-shorts/styles/night-file/example/index.html +18 -0
  124. package/plugins/aiinsight-shorts/styles/night-file/example/script.json +26 -0
  125. package/plugins/aiinsight-shorts/styles/night-file/example/sheet.html +13 -0
  126. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/board.js +62 -0
  127. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/captions.js +49 -0
  128. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/engine.js +65 -0
  129. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/human.js +128 -0
  130. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/kit.js +151 -0
  131. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/lib.js +44 -0
  132. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/sdf.js +79 -0
  133. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/sets3d.js +106 -0
  134. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/timing.js +23 -0
  135. package/plugins/aiinsight-shorts/styles/night-file/example/src/main.js +56 -0
  136. package/plugins/aiinsight-shorts/styles/night-file/example/src/sheet.js +86 -0
  137. package/plugins/aiinsight-shorts/styles/night-file/example/src/shots.js +130 -0
  138. package/plugins/aiinsight-shorts/styles/night-file/example/tools/capture.mjs +122 -0
  139. package/plugins/aiinsight-shorts/styles/night-file/example/tools/mix.py +172 -0
  140. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/LICENSE-three.txt +21 -0
  141. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  142. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  143. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  144. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  145. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  146. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/Pass.js +95 -0
  147. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  148. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  149. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  150. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/BokehShader.js +145 -0
  151. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/CopyShader.js +45 -0
  152. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  153. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/OutputShader.js +85 -0
  154. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/three.module.js +6 -0
  155. package/plugins/aiinsight-shorts/styles/night-file/style-sheet.png +0 -0
  156. package/plugins/aiinsight-shorts/styles/paper-atlas/STYLE.md +30 -0
  157. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/cues.json +167 -0
  158. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/lines.json +67 -0
  159. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/words.json +614 -0
  160. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/words.txt +102 -0
  161. package/plugins/aiinsight-shorts/styles/paper-atlas/example/fonts/Caladea-Bold.ttf +0 -0
  162. package/plugins/aiinsight-shorts/styles/paper-atlas/example/fonts/Inter-Black.otf +0 -0
  163. package/plugins/aiinsight-shorts/styles/paper-atlas/example/index.html +15 -0
  164. package/plugins/aiinsight-shorts/styles/paper-atlas/example/script.json +26 -0
  165. package/plugins/aiinsight-shorts/styles/paper-atlas/example/sheet.html +12 -0
  166. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/board.js +62 -0
  167. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/captions.js +47 -0
  168. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/kit.js +152 -0
  169. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/lib.js +44 -0
  170. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/timing.js +23 -0
  171. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/main.js +62 -0
  172. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/sheet.js +61 -0
  173. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/shots.js +139 -0
  174. package/plugins/aiinsight-shorts/styles/paper-atlas/example/tools/capture.mjs +122 -0
  175. package/plugins/aiinsight-shorts/styles/paper-atlas/example/tools/mix.py +172 -0
  176. package/plugins/aiinsight-shorts/styles/paper-atlas/style-sheet.png +0 -0
  177. package/plugins/aiinsight-shorts/styles/stick-story/STYLE.md +32 -0
  178. package/plugins/aiinsight-shorts/styles/stick-story/example/data/cues.json +182 -0
  179. package/plugins/aiinsight-shorts/styles/stick-story/example/data/lines.json +79 -0
  180. package/plugins/aiinsight-shorts/styles/stick-story/example/data/words.json +662 -0
  181. package/plugins/aiinsight-shorts/styles/stick-story/example/data/words.txt +110 -0
  182. package/plugins/aiinsight-shorts/styles/stick-story/example/fonts/Inter-Black.otf +0 -0
  183. package/plugins/aiinsight-shorts/styles/stick-story/example/fonts/Inter-ExtraBold.otf +0 -0
  184. package/plugins/aiinsight-shorts/styles/stick-story/example/index.html +13 -0
  185. package/plugins/aiinsight-shorts/styles/stick-story/example/script.json +27 -0
  186. package/plugins/aiinsight-shorts/styles/stick-story/example/sheet.html +10 -0
  187. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/board.js +62 -0
  188. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/captions.js +47 -0
  189. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/kit.js +166 -0
  190. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/lib.js +44 -0
  191. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/timing.js +23 -0
  192. package/plugins/aiinsight-shorts/styles/stick-story/example/src/main.js +62 -0
  193. package/plugins/aiinsight-shorts/styles/stick-story/example/src/sheet.js +64 -0
  194. package/plugins/aiinsight-shorts/styles/stick-story/example/src/shots.js +148 -0
  195. package/plugins/aiinsight-shorts/styles/stick-story/example/tools/capture.mjs +122 -0
  196. package/plugins/aiinsight-shorts/styles/stick-story/example/tools/mix.py +172 -0
  197. package/plugins/aiinsight-shorts/styles/stick-story/style-sheet.png +0 -0
  198. package/plugins/aiinsight-shorts/styles/tall-tale/STYLE.md +51 -0
  199. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/cues.json +271 -0
  200. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/lines.json +127 -0
  201. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/words.json +908 -0
  202. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/words.txt +151 -0
  203. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Caladea-Bold.ttf +0 -0
  204. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Inter-Black.otf +0 -0
  205. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Inter-ExtraBold.otf +0 -0
  206. package/plugins/aiinsight-shorts/styles/tall-tale/example/index.html +19 -0
  207. package/plugins/aiinsight-shorts/styles/tall-tale/example/script.json +37 -0
  208. package/plugins/aiinsight-shorts/styles/tall-tale/example/sheet.html +13 -0
  209. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/board.js +62 -0
  210. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/captions.js +56 -0
  211. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/engine.js +65 -0
  212. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/lib.js +44 -0
  213. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/props.js +166 -0
  214. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/timing.js +23 -0
  215. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/toon.js +352 -0
  216. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/world.js +340 -0
  217. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/main.js +56 -0
  218. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/sheet.js +99 -0
  219. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/shots.js +377 -0
  220. package/plugins/aiinsight-shorts/styles/tall-tale/example/tools/capture.mjs +122 -0
  221. package/plugins/aiinsight-shorts/styles/tall-tale/example/tools/mix.py +204 -0
  222. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/LICENSE-three.txt +21 -0
  223. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  224. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  225. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  226. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  227. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  228. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/Pass.js +95 -0
  229. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  230. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  231. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  232. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/BokehShader.js +145 -0
  233. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/CopyShader.js +45 -0
  234. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  235. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/OutputShader.js +85 -0
  236. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/three.module.js +6 -0
  237. package/plugins/aiinsight-shorts/styles/tall-tale/style-sheet.png +0 -0
  238. package/plugins/faceless-shorts/README.md +34 -0
  239. package/plugins/faceless-shorts/SKILL.md +124 -0
  240. package/plugins/faceless-shorts/styles/deep-dive/STYLE.md +58 -0
  241. package/plugins/faceless-shorts/styles/deep-dive/example/data/cues.json +140 -0
  242. package/plugins/faceless-shorts/styles/deep-dive/example/data/lines.json +67 -0
  243. package/plugins/faceless-shorts/styles/deep-dive/example/data/words.json +614 -0
  244. package/plugins/faceless-shorts/styles/deep-dive/example/data/words.txt +102 -0
  245. package/plugins/faceless-shorts/styles/deep-dive/example/fonts/Inter-Black.otf +0 -0
  246. package/plugins/faceless-shorts/styles/deep-dive/example/fonts/Inter-ExtraBold.otf +0 -0
  247. package/plugins/faceless-shorts/styles/deep-dive/example/index.html +16 -0
  248. package/plugins/faceless-shorts/styles/deep-dive/example/script.json +27 -0
  249. package/plugins/faceless-shorts/styles/deep-dive/example/sheet.html +10 -0
  250. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/board.js +62 -0
  251. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/captions.js +68 -0
  252. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/engine.js +65 -0
  253. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/human.js +128 -0
  254. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/lib.js +44 -0
  255. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/look2d.js +33 -0
  256. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/sdf.js +79 -0
  257. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/sets.js +107 -0
  258. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/timing.js +23 -0
  259. package/plugins/faceless-shorts/styles/deep-dive/example/src/main.js +56 -0
  260. package/plugins/faceless-shorts/styles/deep-dive/example/src/sheet.js +79 -0
  261. package/plugins/faceless-shorts/styles/deep-dive/example/src/shots.js +136 -0
  262. package/plugins/faceless-shorts/styles/deep-dive/example/tools/capture.mjs +122 -0
  263. package/plugins/faceless-shorts/styles/deep-dive/example/tools/mix.py +172 -0
  264. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/LICENSE-three.txt +21 -0
  265. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  266. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  267. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  268. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  269. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  270. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/Pass.js +95 -0
  271. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  272. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  273. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  274. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/BokehShader.js +145 -0
  275. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/CopyShader.js +45 -0
  276. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  277. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/OutputShader.js +85 -0
  278. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/three.module.js +6 -0
  279. package/plugins/faceless-shorts/styles/deep-dive/style-sheet.png +0 -0
  280. package/plugins/faceless-shorts/styles/inside-out/STYLE.md +97 -0
  281. package/plugins/faceless-shorts/styles/inside-out/example/data/cues.json +178 -0
  282. package/plugins/faceless-shorts/styles/inside-out/example/data/lines.json +73 -0
  283. package/plugins/faceless-shorts/styles/inside-out/example/data/words.json +662 -0
  284. package/plugins/faceless-shorts/styles/inside-out/example/fonts/Inter-Black.otf +0 -0
  285. package/plugins/faceless-shorts/styles/inside-out/example/index.html +16 -0
  286. package/plugins/faceless-shorts/styles/inside-out/example/script.json +26 -0
  287. package/plugins/faceless-shorts/styles/inside-out/example/src/core/captions.js +68 -0
  288. package/plugins/faceless-shorts/styles/inside-out/example/src/core/kit.js +345 -0
  289. package/plugins/faceless-shorts/styles/inside-out/example/src/core/lib.js +44 -0
  290. package/plugins/faceless-shorts/styles/inside-out/example/src/core/timing.js +23 -0
  291. package/plugins/faceless-shorts/styles/inside-out/example/src/main.js +62 -0
  292. package/plugins/faceless-shorts/styles/inside-out/example/src/shots.js +195 -0
  293. package/plugins/faceless-shorts/styles/inside-out/example/tools/capture.mjs +122 -0
  294. package/plugins/faceless-shorts/styles/inside-out/example/tools/mix.py +172 -0
  295. package/plugins/faceless-shorts/styles/inside-out/style-sheet.png +0 -0
  296. package/plugins/faceless-shorts/styles/night-file/STYLE.md +36 -0
  297. package/plugins/faceless-shorts/styles/night-file/example/data/cues.json +146 -0
  298. package/plugins/faceless-shorts/styles/night-file/example/data/lines.json +73 -0
  299. package/plugins/faceless-shorts/styles/night-file/example/data/words.json +572 -0
  300. package/plugins/faceless-shorts/styles/night-file/example/data/words.txt +95 -0
  301. package/plugins/faceless-shorts/styles/night-file/example/fonts/FreeMonoBold.ttf +0 -0
  302. package/plugins/faceless-shorts/styles/night-file/example/fonts/Inter-Black.otf +0 -0
  303. package/plugins/faceless-shorts/styles/night-file/example/index.html +16 -0
  304. package/plugins/faceless-shorts/styles/night-file/example/script.json +26 -0
  305. package/plugins/faceless-shorts/styles/night-file/example/sheet.html +11 -0
  306. package/plugins/faceless-shorts/styles/night-file/example/src/core/board.js +62 -0
  307. package/plugins/faceless-shorts/styles/night-file/example/src/core/captions.js +49 -0
  308. package/plugins/faceless-shorts/styles/night-file/example/src/core/engine.js +65 -0
  309. package/plugins/faceless-shorts/styles/night-file/example/src/core/human.js +128 -0
  310. package/plugins/faceless-shorts/styles/night-file/example/src/core/kit.js +151 -0
  311. package/plugins/faceless-shorts/styles/night-file/example/src/core/lib.js +44 -0
  312. package/plugins/faceless-shorts/styles/night-file/example/src/core/sdf.js +79 -0
  313. package/plugins/faceless-shorts/styles/night-file/example/src/core/sets3d.js +106 -0
  314. package/plugins/faceless-shorts/styles/night-file/example/src/core/timing.js +23 -0
  315. package/plugins/faceless-shorts/styles/night-file/example/src/main.js +56 -0
  316. package/plugins/faceless-shorts/styles/night-file/example/src/sheet.js +86 -0
  317. package/plugins/faceless-shorts/styles/night-file/example/src/shots.js +130 -0
  318. package/plugins/faceless-shorts/styles/night-file/example/tools/capture.mjs +122 -0
  319. package/plugins/faceless-shorts/styles/night-file/example/tools/mix.py +172 -0
  320. package/plugins/faceless-shorts/styles/night-file/example/vendor/LICENSE-three.txt +21 -0
  321. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  322. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  323. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  324. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  325. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  326. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/Pass.js +95 -0
  327. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  328. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  329. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  330. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/BokehShader.js +145 -0
  331. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/CopyShader.js +45 -0
  332. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  333. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/OutputShader.js +85 -0
  334. package/plugins/faceless-shorts/styles/night-file/example/vendor/three.module.js +6 -0
  335. package/plugins/faceless-shorts/styles/night-file/style-sheet.png +0 -0
  336. package/plugins/faceless-shorts/styles/paper-atlas/STYLE.md +30 -0
  337. package/plugins/faceless-shorts/styles/paper-atlas/example/data/cues.json +167 -0
  338. package/plugins/faceless-shorts/styles/paper-atlas/example/data/lines.json +67 -0
  339. package/plugins/faceless-shorts/styles/paper-atlas/example/data/words.json +614 -0
  340. package/plugins/faceless-shorts/styles/paper-atlas/example/data/words.txt +102 -0
  341. package/plugins/faceless-shorts/styles/paper-atlas/example/fonts/Caladea-Bold.ttf +0 -0
  342. package/plugins/faceless-shorts/styles/paper-atlas/example/fonts/Inter-Black.otf +0 -0
  343. package/plugins/faceless-shorts/styles/paper-atlas/example/index.html +13 -0
  344. package/plugins/faceless-shorts/styles/paper-atlas/example/script.json +26 -0
  345. package/plugins/faceless-shorts/styles/paper-atlas/example/sheet.html +10 -0
  346. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/board.js +62 -0
  347. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/captions.js +47 -0
  348. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/kit.js +152 -0
  349. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/lib.js +44 -0
  350. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/timing.js +23 -0
  351. package/plugins/faceless-shorts/styles/paper-atlas/example/src/main.js +62 -0
  352. package/plugins/faceless-shorts/styles/paper-atlas/example/src/sheet.js +61 -0
  353. package/plugins/faceless-shorts/styles/paper-atlas/example/src/shots.js +139 -0
  354. package/plugins/faceless-shorts/styles/paper-atlas/example/tools/capture.mjs +122 -0
  355. package/plugins/faceless-shorts/styles/paper-atlas/example/tools/mix.py +172 -0
  356. package/plugins/faceless-shorts/styles/paper-atlas/style-sheet.png +0 -0
  357. package/plugins/faceless-shorts/styles/stick-story/STYLE.md +32 -0
  358. package/plugins/faceless-shorts/styles/stick-story/example/data/cues.json +182 -0
  359. package/plugins/faceless-shorts/styles/stick-story/example/data/lines.json +79 -0
  360. package/plugins/faceless-shorts/styles/stick-story/example/data/words.json +662 -0
  361. package/plugins/faceless-shorts/styles/stick-story/example/data/words.txt +110 -0
  362. package/plugins/faceless-shorts/styles/stick-story/example/fonts/Inter-Black.otf +0 -0
  363. package/plugins/faceless-shorts/styles/stick-story/example/fonts/Inter-ExtraBold.otf +0 -0
  364. package/plugins/faceless-shorts/styles/stick-story/example/index.html +12 -0
  365. package/plugins/faceless-shorts/styles/stick-story/example/script.json +27 -0
  366. package/plugins/faceless-shorts/styles/stick-story/example/sheet.html +9 -0
  367. package/plugins/faceless-shorts/styles/stick-story/example/src/core/board.js +62 -0
  368. package/plugins/faceless-shorts/styles/stick-story/example/src/core/captions.js +47 -0
  369. package/plugins/faceless-shorts/styles/stick-story/example/src/core/kit.js +166 -0
  370. package/plugins/faceless-shorts/styles/stick-story/example/src/core/lib.js +44 -0
  371. package/plugins/faceless-shorts/styles/stick-story/example/src/core/timing.js +23 -0
  372. package/plugins/faceless-shorts/styles/stick-story/example/src/main.js +62 -0
  373. package/plugins/faceless-shorts/styles/stick-story/example/src/sheet.js +64 -0
  374. package/plugins/faceless-shorts/styles/stick-story/example/src/shots.js +148 -0
  375. package/plugins/faceless-shorts/styles/stick-story/example/tools/capture.mjs +122 -0
  376. package/plugins/faceless-shorts/styles/stick-story/example/tools/mix.py +172 -0
  377. package/plugins/faceless-shorts/styles/stick-story/style-sheet.png +0 -0
  378. package/plugins/faceless-shorts/styles/tall-tale/STYLE.md +51 -0
  379. package/plugins/faceless-shorts/styles/tall-tale/example/data/cues.json +271 -0
  380. package/plugins/faceless-shorts/styles/tall-tale/example/data/lines.json +127 -0
  381. package/plugins/faceless-shorts/styles/tall-tale/example/data/words.json +908 -0
  382. package/plugins/faceless-shorts/styles/tall-tale/example/data/words.txt +151 -0
  383. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Caladea-Bold.ttf +0 -0
  384. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Inter-Black.otf +0 -0
  385. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Inter-ExtraBold.otf +0 -0
  386. package/plugins/faceless-shorts/styles/tall-tale/example/index.html +17 -0
  387. package/plugins/faceless-shorts/styles/tall-tale/example/script.json +37 -0
  388. package/plugins/faceless-shorts/styles/tall-tale/example/sheet.html +11 -0
  389. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/board.js +62 -0
  390. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/captions.js +56 -0
  391. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/engine.js +65 -0
  392. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/lib.js +44 -0
  393. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/props.js +166 -0
  394. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/timing.js +23 -0
  395. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/toon.js +352 -0
  396. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/world.js +340 -0
  397. package/plugins/faceless-shorts/styles/tall-tale/example/src/main.js +56 -0
  398. package/plugins/faceless-shorts/styles/tall-tale/example/src/sheet.js +99 -0
  399. package/plugins/faceless-shorts/styles/tall-tale/example/src/shots.js +377 -0
  400. package/plugins/faceless-shorts/styles/tall-tale/example/tools/capture.mjs +122 -0
  401. package/plugins/faceless-shorts/styles/tall-tale/example/tools/mix.py +204 -0
  402. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/LICENSE-three.txt +21 -0
  403. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  404. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  405. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  406. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  407. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  408. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/Pass.js +95 -0
  409. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  410. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  411. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  412. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/BokehShader.js +145 -0
  413. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/CopyShader.js +45 -0
  414. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  415. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/OutputShader.js +85 -0
  416. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/three.module.js +6 -0
  417. package/plugins/faceless-shorts/styles/tall-tale/style-sheet.png +0 -0
  418. package/plugins/motion-styles/LIBRARY.md +896 -0
  419. package/plugins/motion-styles/README.md +29 -0
  420. package/plugins/motion-styles/SKILL.md +70 -0
  421. package/plugins/motion-styles/catalog.json +2253 -0
  422. package/plugins/motion-styles/prompts/bio-glow.md +149 -0
  423. package/plugins/motion-styles/prompts/blueprint.md +145 -0
  424. package/plugins/motion-styles/prompts/breaking-desk.md +147 -0
  425. package/plugins/motion-styles/prompts/callout-kit.md +147 -0
  426. package/plugins/motion-styles/prompts/chalk-talk.md +153 -0
  427. package/plugins/motion-styles/prompts/chat-story.md +143 -0
  428. package/plugins/motion-styles/prompts/clay-diorama.md +149 -0
  429. package/plugins/motion-styles/prompts/clean-tech.md +147 -0
  430. package/plugins/motion-styles/prompts/comic-panels.md +145 -0
  431. package/plugins/motion-styles/prompts/cosmic-scale.md +147 -0
  432. package/plugins/motion-styles/prompts/creator-motion.md +149 -0
  433. package/plugins/motion-styles/prompts/data-city.md +149 -0
  434. package/plugins/motion-styles/prompts/data-story.md +147 -0
  435. package/plugins/motion-styles/prompts/deep-layers.md +147 -0
  436. package/plugins/motion-styles/prompts/doc-cinema.md +145 -0
  437. package/plugins/motion-styles/prompts/evidence-board.md +145 -0
  438. package/plugins/motion-styles/prompts/exploded-view.md +149 -0
  439. package/plugins/motion-styles/prompts/glass-icons.md +147 -0
  440. package/plugins/motion-styles/prompts/glitch-pack.md +145 -0
  441. package/plugins/motion-styles/prompts/globe-arcs.md +147 -0
  442. package/plugins/motion-styles/prompts/headline-backdrop.md +145 -0
  443. package/plugins/motion-styles/prompts/iso-cutaway.md +147 -0
  444. package/plugins/motion-styles/prompts/isotype.md +145 -0
  445. package/plugins/motion-styles/prompts/karaoke-subs.md +145 -0
  446. package/plugins/motion-styles/prompts/low-poly-atlas.md +149 -0
  447. package/plugins/motion-styles/prompts/lower-thirds.md +147 -0
  448. package/plugins/motion-styles/prompts/marker-board.md +145 -0
  449. package/plugins/motion-styles/prompts/market-tape.md +145 -0
  450. package/plugins/motion-styles/prompts/math-canvas.md +145 -0
  451. package/plugins/motion-styles/prompts/myth-or-fact.md +145 -0
  452. package/plugins/motion-styles/prompts/neon-line.md +145 -0
  453. package/plugins/motion-styles/prompts/paper-craft.md +145 -0
  454. package/plugins/motion-styles/prompts/parchment-map.md +147 -0
  455. package/plugins/motion-styles/prompts/physics-toybox.md +147 -0
  456. package/plugins/motion-styles/prompts/pixel-quest.md +145 -0
  457. package/plugins/motion-styles/prompts/podcast-clip.md +147 -0
  458. package/plugins/motion-styles/prompts/pop-info.md +145 -0
  459. package/plugins/motion-styles/prompts/product-turntable.md +149 -0
  460. package/plugins/motion-styles/prompts/punch-captions.md +145 -0
  461. package/plugins/motion-styles/prompts/quiz-countdown.md +145 -0
  462. package/plugins/motion-styles/prompts/quote-cinema.md +145 -0
  463. package/plugins/motion-styles/prompts/recipe-steps.md +145 -0
  464. package/plugins/motion-styles/prompts/rubber-hose-reel.md +145 -0
  465. package/plugins/motion-styles/prompts/shadow-puppets.md +145 -0
  466. package/plugins/motion-styles/prompts/size-lineup.md +149 -0
  467. package/plugins/motion-styles/prompts/software-walkthrough.md +147 -0
  468. package/plugins/motion-styles/prompts/stack-split.md +145 -0
  469. package/plugins/motion-styles/prompts/sticker-pop.md +145 -0
  470. package/plugins/motion-styles/prompts/storybook.md +145 -0
  471. package/plugins/motion-styles/prompts/swiss-grid.md +145 -0
  472. package/plugins/motion-styles/prompts/synth-grid.md +147 -0
  473. package/plugins/motion-styles/prompts/tactics-board.md +145 -0
  474. package/plugins/motion-styles/prompts/terminal.md +145 -0
  475. package/plugins/motion-styles/prompts/tier-list.md +143 -0
  476. package/plugins/motion-styles/prompts/timeline-rail.md +145 -0
  477. package/plugins/motion-styles/prompts/top-5-countdown.md +145 -0
  478. package/plugins/motion-styles/prompts/versus-split.md +145 -0
  479. package/plugins/motion-styles/prompts/vhs-camcorder.md +145 -0
  480. package/plugins/motion-styles/prompts/visual-novel.md +145 -0
  481. package/plugins/motion-styles/prompts/warm-canvas.md +145 -0
  482. package/plugins/motion-styles/prompts/woodcut-tale.md +145 -0
  483. package/plugins/motion-styles/prompts/zine-collage.md +145 -0
  484. package/plugins/motion-styles/sources/bio-glow.html +639 -0
  485. package/plugins/motion-styles/sources/blueprint.html +617 -0
  486. package/plugins/motion-styles/sources/breaking-desk.html +585 -0
  487. package/plugins/motion-styles/sources/callout-kit.html +586 -0
  488. package/plugins/motion-styles/sources/chalk-talk.html +597 -0
  489. package/plugins/motion-styles/sources/chat-story.html +597 -0
  490. package/plugins/motion-styles/sources/clay-diorama.html +681 -0
  491. package/plugins/motion-styles/sources/clean-tech.html +554 -0
  492. package/plugins/motion-styles/sources/comic-panels.html +608 -0
  493. package/plugins/motion-styles/sources/cosmic-scale.html +628 -0
  494. package/plugins/motion-styles/sources/creator-motion.html +805 -0
  495. package/plugins/motion-styles/sources/data-city.html +613 -0
  496. package/plugins/motion-styles/sources/data-story.html +539 -0
  497. package/plugins/motion-styles/sources/deep-layers.html +624 -0
  498. package/plugins/motion-styles/sources/doc-cinema.html +590 -0
  499. package/plugins/motion-styles/sources/evidence-board.html +610 -0
  500. package/plugins/motion-styles/sources/exploded-view.html +618 -0
  501. package/plugins/motion-styles/sources/glass-icons.html +612 -0
  502. package/plugins/motion-styles/sources/glitch-pack.html +583 -0
  503. package/plugins/motion-styles/sources/globe-arcs.html +621 -0
  504. package/plugins/motion-styles/sources/headline-backdrop.html +584 -0
  505. package/plugins/motion-styles/sources/iso-cutaway.html +621 -0
  506. package/plugins/motion-styles/sources/isotype.html +588 -0
  507. package/plugins/motion-styles/sources/karaoke-subs.html +577 -0
  508. package/plugins/motion-styles/sources/low-poly-atlas.html +621 -0
  509. package/plugins/motion-styles/sources/lower-thirds.html +582 -0
  510. package/plugins/motion-styles/sources/marker-board.html +598 -0
  511. package/plugins/motion-styles/sources/market-tape.html +598 -0
  512. package/plugins/motion-styles/sources/math-canvas.html +592 -0
  513. package/plugins/motion-styles/sources/myth-or-fact.html +587 -0
  514. package/plugins/motion-styles/sources/neon-line.html +597 -0
  515. package/plugins/motion-styles/sources/paper-craft.html +612 -0
  516. package/plugins/motion-styles/sources/parchment-map.html +624 -0
  517. package/plugins/motion-styles/sources/physics-toybox.html +617 -0
  518. package/plugins/motion-styles/sources/pixel-quest.html +609 -0
  519. package/plugins/motion-styles/sources/podcast-clip.html +585 -0
  520. package/plugins/motion-styles/sources/pop-info.html +677 -0
  521. package/plugins/motion-styles/sources/product-turntable.html +611 -0
  522. package/plugins/motion-styles/sources/punch-captions.html +583 -0
  523. package/plugins/motion-styles/sources/quiz-countdown.html +593 -0
  524. package/plugins/motion-styles/sources/quote-cinema.html +581 -0
  525. package/plugins/motion-styles/sources/recipe-steps.html +599 -0
  526. package/plugins/motion-styles/sources/rubber-hose-reel.html +627 -0
  527. package/plugins/motion-styles/sources/shadow-puppets.html +609 -0
  528. package/plugins/motion-styles/sources/size-lineup.html +620 -0
  529. package/plugins/motion-styles/sources/software-walkthrough.html +651 -0
  530. package/plugins/motion-styles/sources/stack-split.html +588 -0
  531. package/plugins/motion-styles/sources/sticker-pop.html +587 -0
  532. package/plugins/motion-styles/sources/storybook.html +600 -0
  533. package/plugins/motion-styles/sources/swiss-grid.html +590 -0
  534. package/plugins/motion-styles/sources/synth-grid.html +614 -0
  535. package/plugins/motion-styles/sources/tactics-board.html +608 -0
  536. package/plugins/motion-styles/sources/terminal.html +593 -0
  537. package/plugins/motion-styles/sources/tier-list.html +600 -0
  538. package/plugins/motion-styles/sources/timeline-rail.html +598 -0
  539. package/plugins/motion-styles/sources/top-5-countdown.html +589 -0
  540. package/plugins/motion-styles/sources/versus-split.html +592 -0
  541. package/plugins/motion-styles/sources/vhs-camcorder.html +587 -0
  542. package/plugins/motion-styles/sources/visual-novel.html +623 -0
  543. package/plugins/motion-styles/sources/warm-canvas.html +742 -0
  544. package/plugins/motion-styles/sources/woodcut-tale.html +598 -0
  545. package/plugins/motion-styles/sources/zine-collage.html +594 -0
  546. package/plugins/video-pipeline/.claude-plugin/plugin.json +2 -2
  547. package/plugins/video-pipeline/skills/.upstream-skills.json +156 -143
  548. package/plugins/video-pipeline/skills/video-pipeline/references/mcp-tools.md +3 -3
  549. package/scripts/deep-validate.js +3 -2
  550. package/src/audio-mixer/mixer.js +69 -0
  551. package/src/cli/make.js +19 -0
  552. package/src/harness/lib/browser.mjs +22 -1
  553. package/src/harness/lib/capture.mjs +33 -11
  554. package/src/harness/lib/jobs.mjs +16 -1
  555. package/src/mcp-server/server.js +726 -10
  556. package/src/pipeline/providers.js +77 -17
  557. package/src/skills/sync-upstream.js +15 -3
  558. package/src/utils/media-downloader.js +7 -0
  559. package/src/utils/tool-installer.js +212 -0
  560. package/src/utils/transcribe.js +9 -1
  561. package/src/video-renderer/renderer.js +68 -38
  562. package/src/video-renderer/scene-animator.js +50 -15
  563. package/src/workflows/assets.js +49 -5
  564. package/src/workflows/render.js +2 -0
  565. package/src/workflows/script.js +14 -3
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html><head><meta charset="utf-8"><title>Style sheet</title>
3
+ <style>
4
+ @font-face { font-family: 'Inter'; font-weight: 900; src: url('fonts/Inter-Black.otf'); }
5
+ @font-face { font-family: 'Inter'; font-weight: 800; src: url('fonts/Inter-Black.otf'); }
6
+ @font-face { font-family: 'FreeMono'; font-weight: 700; src: url('fonts/FreeMonoBold.ttf'); }
7
+ @font-face { font-family: 'FreeMono'; font-weight: 100 900; src: local('Nirmala UI Bold'), local('NirmalaUI-Bold'), local('Nirmala UI'), local('Noto Sans Malayalam Bold'), local('NotoSansMalayalam-Bold'), local('Noto Sans Malayalam'), local('Malayalam Sangam MN Bold'), local('Malayalam Sangam MN'), local('FreeSans Bold'), local('FreeSansBold'), local('FreeSans'); unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC; } /* Malayalam (AI Insight Shorts) */
8
+ @font-face { font-family: 'Inter'; font-weight: 100 900; src: local('Nirmala UI Bold'), local('NirmalaUI-Bold'), local('Nirmala UI'), local('Noto Sans Malayalam Bold'), local('NotoSansMalayalam-Bold'), local('Noto Sans Malayalam'), local('Malayalam Sangam MN Bold'), local('Malayalam Sangam MN'), local('FreeSans Bold'), local('FreeSansBold'), local('FreeSans'); unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC; } /* Malayalam (AI Insight Shorts) */
9
+ html, body { margin: 0; background: #111; } canvas { display: block; max-width: 100vw; height: auto; } #gl, #gl2 { display: none; }
10
+ </style></head>
11
+ <body><canvas id="cv" width="1920" height="1080"></canvas><canvas id="gl" width="1080" height="1920"></canvas><canvas id="gl2" width="1280" height="860"></canvas>
12
+ <script type="importmap">{"imports":{"three":"./vendor/three.module.js","three/addons/":"./vendor/addons/"}}</script>
13
+ <script type="module" src="src/sheet.js"></script></body></html>
@@ -0,0 +1,62 @@
1
+ // Style-sheet board (1920x1080): the style's look on one page, drawn with the style's OWN kit, so the sheet always
2
+ // matches what renders. Used by sheet.html -> node tools/capture.mjs stylesheet ../style-sheet.png
3
+ import { setCtx } from './lib.js';
4
+
5
+ export const BW = 1920, BH = 1080;
6
+ let B = null; // the board's 2D context
7
+ const off = document.createElement('canvas'); off.width = 1080; off.height = 1920;
8
+ const offCtx = off.getContext('2d');
9
+
10
+ export function startBoard(canvas, { title, author = 'MADE BY YOUR NAME · 2026', bg = '#17181C', line = '#4A4D55', head = '#F2F2F2', accent = '#FFD43B', font = 'Inter' }) {
11
+ B = canvas.getContext('2d'); setCtx(B);
12
+ B.fillStyle = bg; B.fillRect(0, 0, BW, BH);
13
+ B.font = `900 44px ${font}`; B.fillStyle = head; B.textBaseline = 'alphabetic'; B.textAlign = 'left'; B.letterSpacing = '3px';
14
+ B.fillText(title, 24, 52);
15
+ B.font = `800 22px Inter`; B.textAlign = 'right'; B.fillStyle = '#B9BCC4'; B.letterSpacing = '2px'; B.fillText(author, BW - 24, 48);
16
+ B.letterSpacing = '0px';
17
+ board.line = line; board.head = head; board.accent = accent; board.font = font;
18
+ return B;
19
+ }
20
+ export const board = { line: '#444', head: '#fff', accent: '#ff0', font: 'Inter' };
21
+
22
+ /** a numbered panel with its heading; returns the inner content box */
23
+ export function panel(x, y, w, h, n, label) {
24
+ B.strokeStyle = board.line; B.lineWidth = 2; B.strokeRect(x + 0.5, y + 0.5, w, h);
25
+ B.font = `900 30px ${board.font}`; B.fillStyle = board.head; B.textAlign = 'left'; B.letterSpacing = '6px';
26
+ B.fillText(`${n}. ${label}`, x + 18, y + 42); B.letterSpacing = '0px';
27
+ B.strokeStyle = board.line; B.beginPath(); B.moveTo(x + 18, y + 58); B.lineTo(x + w - 18, y + 58); B.stroke();
28
+ return { x: x + 18, y: y + 72, w: w - 36, h: h - 90 };
29
+ }
30
+ /** render a 1080x1920 frame with drawFn (which uses the kit) and place it at x, y, w (height = w * 16/9) */
31
+ export function frame(x, y, w, drawFn) {
32
+ offCtx.setTransform(1, 0, 0, 1, 0, 0); offCtx.globalAlpha = 1; offCtx.clearRect(0, 0, 1080, 1920);
33
+ setCtx(offCtx); offCtx.save(); drawFn(); offCtx.restore(); setCtx(B);
34
+ const h = w * 16 / 9; B.drawImage(off, x, y, w, h);
35
+ B.strokeStyle = board.line; B.lineWidth = 2; B.strokeRect(x, y, w, h);
36
+ return h;
37
+ }
38
+ /** draw a kit component at (cx, cy) scaled by s, with a label under it */
39
+ export function cell(cx, cy, s, drawFn, label, labelY = 90, color = '#3A3640') {
40
+ B.save(); B.translate(cx, cy); B.scale(s, s); drawFn(); B.restore(); setCtx(B);
41
+ if (label) small(label, cx, cy + labelY, 'center', 15, color);
42
+ }
43
+ export function small(text, x, y, align = 'left', size = 17, color = '#D7D9DE') {
44
+ B.font = `800 ${size}px Inter`; B.fillStyle = color; B.textAlign = align; B.letterSpacing = '2px';
45
+ text.split('\n').forEach((l, i) => B.fillText(l, x, y + i * (size + 5))); B.letterSpacing = '0px';
46
+ }
47
+ export function swatches(box, list) {
48
+ const n = list.length, gap = 12, sw = Math.min(78, (box.w - gap * (n - 1)) / n), tw = n * sw + (n - 1) * gap, x0 = box.x + (box.w - tw) / 2;
49
+ list.forEach(([name, hex], i) => {
50
+ const x = x0 + i * (sw + gap); B.fillStyle = hex; B.beginPath(); B.roundRect(x, box.y + 10, sw, sw * 0.9, 8); B.fill();
51
+ B.strokeStyle = 'rgba(255,255,255,0.15)'; B.lineWidth = 1; B.stroke();
52
+ small(name + '\n' + hex.toUpperCase(), x + sw / 2, box.y + sw * 0.9 + 34, 'center', 13);
53
+ });
54
+ return box.y + sw * 0.9 + 80;
55
+ }
56
+ export function rules(box, list, y0 = box.y + 20, size = 19, step = 52) {
57
+ list.forEach((r, i) => {
58
+ B.beginPath(); B.arc(box.x + 18, y0 + i * step - 6, 17, 0, 7); B.strokeStyle = board.head; B.lineWidth = 2; B.stroke();
59
+ small(String(i + 1), box.x + 18, y0 + i * step + 1, 'center', 17, board.head);
60
+ small(r, box.x + 50, y0 + i * step, 'left', size, '#E6E7EA');
61
+ });
62
+ }
@@ -0,0 +1,49 @@
1
+ // Captions: 1-3 words, Inter Black, white with a thick ink outline, ONE yellow word, centre lower third.
2
+ // Each script line has "caps": "WHAT IF *YOU | SWALLOW *GUM?" ("|" = next caption, "*" = the yellow word).
3
+ // Without "caps", the line is chunked automatically (2-3 words, the longest word goes yellow).
4
+ // A chunk appears 0.05 s before its first word and stays until the next chunk (or shortly after the line ends).
5
+ import { ctx, C, clamp, lerp, seg, eob } from './lib.js';
6
+ import { T, lineWords } from './timing.js';
7
+ import { captionMono, CAPLOOK } from './kit.js';
8
+
9
+ export const CAP = { y: 1400, size: 150, maxW: 900 };
10
+ let caps = [];
11
+
12
+ function autoChunks(text) {
13
+ const ws = text.toUpperCase().split(/\s+/).filter(Boolean), out = [];
14
+ for (let i = 0; i < ws.length;) { const n = ws.length - i === 4 ? 2 : Math.min(3, ws.length - i); out.push(ws.slice(i, i + n)); i += n; }
15
+ return out.map((c) => { const k = c.reduce((b, w, j) => (w.replace(/[^A-Z\u0D00-\u0D7F]/g, '').length > c[b].replace(/[^A-Z\u0D00-\u0D7F]/g, '').length ? j : b), 0); return c.map((w, j) => (j === k ? '*' + w : w)).join(' '); });
16
+ }
17
+
18
+ export function buildCaptions(script) {
19
+ caps = [];
20
+ script.lines.forEach((ln, i) => {
21
+ const chunks = (ln.caps ? ln.caps.split('|') : autoChunks(ln.text)).map((s) => s.trim()).filter(Boolean);
22
+ const ws = lineWords(i); if (!ws.length) return;
23
+ const counts = chunks.map((c) => c.split(/\s+/).length), N = counts.reduce((a, b) => a + b, 0);
24
+ const nm = (w) => String(w).toLowerCase().replace(/[^a-z0-9'\u0D00-\u0D7F]+/g, '');
25
+ let acc = 0, from = 0;
26
+ chunks.forEach((c, j) => {
27
+ // find the chunk's first word in the spoken line (from where the last chunk started); else place it by word count
28
+ const first = nm(c.split(/\s+/)[0]);
29
+ let idx = j === 0 ? 0 : ws.findIndex((w, k) => k > from && first && (nm(w.w) === first || (first.length > 2 && nm(w.w).startsWith(first))));
30
+ if (idx < 0) idx = Math.max(from + (j ? 1 : 0), Math.min(ws.length - 1, Math.round(acc * ws.length / N)));
31
+ acc += counts[j]; from = idx;
32
+ caps.push({ line: i, s: ws[idx].s - 0.05, words: c.split(/\s+/).map((w) => ({ txt: w.replace('*', ''), hi: w.startsWith('*') })) });
33
+ });
34
+ });
35
+ caps.forEach((c, k) => {
36
+ const next = caps[k + 1], lineEnd = T.lines[c.line].end;
37
+ c.e = next ? (next.s - lineEnd > 0.7 && next.line !== c.line ? lineEnd + 0.35 : next.s) : T.dur;
38
+ });
39
+ return caps;
40
+ }
41
+ export const captionList = () => caps;
42
+
43
+ export function drawCaption(t) {
44
+ const c = caps.find((c) => t >= c.s && t < c.e); if (!c) return;
45
+ // typewriter: the caption types on, letter by letter
46
+ const lt = t - c.s, total = c.words.reduce((a, w) => a + w.txt.length + 1, 0), n = Math.floor(clamp(lt / 0.35) * total);
47
+ let left = n; const shown = c.words.map((w) => { const k = Math.max(0, Math.min(w.txt.length, left)); left -= w.txt.length + 1; return { ...w, txt: w.txt.slice(0, k) }; }).filter((w) => w.txt.length);
48
+ if (shown.length) captionMono(shown, 540, CAPLOOK.y, 1);
49
+ }
@@ -0,0 +1,65 @@
1
+ // Renderer + film look: ACES tone curve, soft shadows, environment light, bloom, depth of field, vignette + grain.
2
+ // const E = makeEngine(canvas) · E.render(scene, camera, { bloom, focus, aperture, maxblur, grade })
3
+ import * as THREE from 'three';
4
+ import { EffectComposer } from 'three/addons/postprocessing/EffectComposer.js';
5
+ import { RenderPass } from 'three/addons/postprocessing/RenderPass.js';
6
+ import { UnrealBloomPass } from 'three/addons/postprocessing/UnrealBloomPass.js';
7
+ import { BokehPass } from 'three/addons/postprocessing/BokehPass.js';
8
+ import { ShaderPass } from 'three/addons/postprocessing/ShaderPass.js';
9
+ import { OutputPass } from 'three/addons/postprocessing/OutputPass.js';
10
+ import { RoomEnvironment } from 'three/addons/environments/RoomEnvironment.js';
11
+
12
+ export const W = 1080, H = 1920;
13
+ /** render quality from the URL: ?res=0.6 renders 3D at 60% size (upscaled), ?aa=0 turns MSAA off, ?shadow=1024 */
14
+ const Q = new URLSearchParams(typeof location !== 'undefined' ? location.search : '');
15
+ export const RES = +(Q.get('res') || 1), AA = +(Q.get('aa') ?? 4), SHADOW = +(Q.get('shadow') || 2048);
16
+ const GRADE = {
17
+ uniforms: { tDiffuse: { value: null }, uVig: { value: 0.35 }, uGrain: { value: 0.025 }, uTime: { value: 0 }, uWarm: { value: 0.04 } },
18
+ vertexShader: 'varying vec2 vUv; void main(){ vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); }',
19
+ fragmentShader: `uniform sampler2D tDiffuse; uniform float uVig, uGrain, uTime, uWarm; varying vec2 vUv;
20
+ float h(vec2 p){ return fract(sin(dot(p, vec2(12.9898, 78.233)) + uTime * 7.13) * 43758.5453); }
21
+ void main(){ vec4 c = texture2D(tDiffuse, vUv); vec2 d = vUv - 0.5; d.x *= 0.5625;
22
+ c.rgb *= 1.0 - uVig * smoothstep(0.25, 0.75, length(d) * 1.4);
23
+ c.rgb += (h(vUv * 1000.0) - 0.5) * uGrain; c.r += uWarm * 0.5; c.b -= uWarm * 0.5; gl_FragColor = c; }`,
24
+ };
25
+
26
+ export function makeEngine(canvas, { w = W, h = H, samples = 4, shadowSize = 2048 } = {}) {
27
+ const renderer = new THREE.WebGLRenderer({ canvas, antialias: true, preserveDrawingBuffer: true });
28
+ renderer.setSize(w, h, false); renderer.setPixelRatio(1);
29
+ renderer.toneMapping = THREE.ACESFilmicToneMapping; renderer.toneMappingExposure = 1.0;
30
+ renderer.shadowMap.enabled = true; renderer.shadowMap.type = THREE.PCFSoftShadowMap; renderer.outputColorSpace = THREE.SRGBColorSpace;
31
+ const pmrem = new THREE.PMREMGenerator(renderer), envMap = pmrem.fromScene(new RoomEnvironment(), 0.04).texture;
32
+ const rt = new THREE.WebGLRenderTarget(w, h, { type: THREE.HalfFloatType, samples });
33
+ renderer.userData = { shadowSize };
34
+ const composer = new EffectComposer(renderer, rt); composer.setSize(w, h);
35
+ const rp = new RenderPass(new THREE.Scene(), new THREE.PerspectiveCamera()); composer.addPass(rp);
36
+ const bokeh = new BokehPass(rp.scene, rp.camera, { focus: 3, aperture: 0.002, maxblur: 0.008 }); composer.addPass(bokeh);
37
+ const bloom = new UnrealBloomPass(new THREE.Vector2(w, h), 0.35, 0.6, 0.85); composer.addPass(bloom);
38
+ composer.addPass(new OutputPass());
39
+ const grade = new ShaderPass(GRADE); composer.addPass(grade);
40
+ return {
41
+ renderer, envMap, composer,
42
+ /** look = { bloom, bloomThreshold, focus (m), aperture (0 = all sharp), maxblur, exposure, vignette, grain, warm, t } */
43
+ render(scene, camera, look = {}) {
44
+ rp.scene = scene; rp.camera = camera; bokeh.scene = scene; bokeh.camera = camera;
45
+ bokeh.enabled = (look.aperture ?? 0.0015) > 0;
46
+ bokeh.uniforms.focus.value = look.focus ?? 3; bokeh.uniforms.aperture.value = look.aperture ?? 0.0015; bokeh.uniforms.maxblur.value = look.maxblur ?? 0.006;
47
+ bloom.strength = look.bloom ?? 0.3; bloom.threshold = look.bloomThreshold ?? 0.85; bloom.radius = 0.6;
48
+ renderer.toneMappingExposure = look.exposure ?? 1.0;
49
+ grade.uniforms.uVig.value = look.vignette ?? 0.35; grade.uniforms.uGrain.value = look.grain ?? 0.02; grade.uniforms.uWarm.value = look.warm ?? 0.03; grade.uniforms.uTime.value = look.t ?? 0;
50
+ composer.render();
51
+ },
52
+ };
53
+ }
54
+ /** the default light rig: warm key with soft shadow, cool fill, rim, sky/ground bounce. Returns { key, rim, group } */
55
+ export function lightRig(scene, { key = '#FFE2C2', keyI = 3.2, keyPos = [2.5, 4, 3], rimCol = '#BFD8FF', rimI = 2.2, sky = '#FFF4E6', ground = '#8C6E55', hemiI = 0.9, shadowBox = 3, target = [0, 1, 0] } = {}) {
56
+ const g = new THREE.Group(); scene.add(g);
57
+ const k = new THREE.DirectionalLight(key, keyI); k.position.set(...keyPos); k.target.position.set(...target); k.castShadow = true;
58
+ k.shadow.mapSize.set(SHADOW, SHADOW); k.shadow.bias = -0.0004; k.shadow.normalBias = 0.02; k.shadow.radius = 6;
59
+ Object.assign(k.shadow.camera, { left: -shadowBox, right: shadowBox, top: shadowBox, bottom: -shadowBox, near: 0.1, far: 20 }); k.shadow.camera.updateProjectionMatrix();
60
+ g.add(k, k.target);
61
+ const r = new THREE.DirectionalLight(rimCol, rimI); r.position.set(-3, 3, -3); g.add(r);
62
+ g.add(new THREE.HemisphereLight(sky, ground, hemiI));
63
+ return { key: k, rim: r, group: g };
64
+ }
65
+ export function camera(fov = 30) { return new THREE.PerspectiveCamera(fov, W / H, 0.05, 120); }
@@ -0,0 +1,128 @@
1
+ // A stylized 3D person sculpted from SDFs (smooth, clay-like), split into rigid parts on a simple skeleton so it can
2
+ // be posed every frame. new Human({ skin, shirt, pants, shoes, hair, face: true|false, scale }).
3
+ // h.group (add to scene; feet at y = 0) · h.pose({ spine, chest, head, shL, elL, shR, elR, hipL, knL, hipR, knR }) degrees
4
+ // h.setXray(true) (body becomes x-ray glass with bones + organs inside, head stays) · h.setLook(mat) (Night File looks)
5
+ import * as THREE from 'three';
6
+ import { sphere, ellipsoid, capsule, smin, smax, ssub, noise3, mesh, rgb } from './sdf.js';
7
+
8
+ const D = THREE.MathUtils.degToRad;
9
+ const cache = new Map();
10
+ const mixc = (a, b, t) => [a[0] + (b[0] - a[0]) * t, a[1] + (b[1] - a[1]) * t, a[2] + (b[2] - a[2]) * t];
11
+ const sstep = (a, b, x) => { const t = Math.max(0, Math.min(1, (x - a) / (b - a))); return t * t * (3 - 2 * t); }; // sculpts are reused across characters with the same look
12
+ function sculpt(key, f, bounds, step, color) { const k = key; if (!cache.has(k)) cache.set(k, mesh(f, bounds, step, color)); return cache.get(k); }
13
+
14
+ export const SKIN_MAT = () => new THREE.MeshPhysicalMaterial({ vertexColors: true, roughness: 0.55, sheen: 0.35, sheenRoughness: 0.7, sheenColor: new THREE.Color('#ffd6c2') });
15
+
16
+ export class Human {
17
+ constructor(o = {}) {
18
+ const c = { skin: '#E3A988', shirt: '#3E7CC9', pants: '#2B3550', shoes: '#F2F2F2', hair: '#3A2618', iris: '#4A3426', ...o };
19
+ this.o = c; const face = c.face !== false, K = JSON.stringify(c);
20
+ const S = rgb(c.skin), SH = rgb(c.shirt), PA = rgb(c.pants), SO = rgb(c.shoes);
21
+ this.mat = SKIN_MAT(); this.parts = [];
22
+ const add = (parent, geo, pos = [0, 0, 0]) => { const m = new THREE.Mesh(geo, this.mat); m.castShadow = true; m.receiveShadow = true; m.position.set(...pos); parent.add(m); this.parts.push(m); return m; };
23
+ const G = (parent, pos) => { const g = new THREE.Group(); g.position.set(...pos); parent.add(g); return g; };
24
+
25
+ this.group = new THREE.Group(); this.group.scale.setScalar(c.scale || 1);
26
+ this.hips = G(this.group, [0, 0.93, 0]);
27
+ // torso (pivot low in the back so the spine bends naturally)
28
+ this.spine = G(this.hips, [0, 0.04, 0]);
29
+ add(this.spine, sculpt('torso' + K, (p) => {
30
+ let d = ellipsoid(p, [0, 0.34, 0], [0.185, 0.165, 0.118]);
31
+ d = smin(d, ellipsoid(p, [0, 0.13, 0.008], [0.162, 0.17, 0.112]), 0.08);
32
+ d = smin(d, ellipsoid(p, [0, -0.04, 0], [0.165, 0.11, 0.108]), 0.07);
33
+ d = smin(d, capsule(p, [-0.165, 0.43, -0.005], [0.165, 0.43, -0.005], 0.062), 0.07);
34
+ d = smin(d, capsule(p, [0, 0.46, -0.005], [0, 0.6, 0.0], 0.05, 0.047), 0.05);
35
+ return d;
36
+ }, [[-0.27, -0.17, -0.16], [0.27, 0.64, 0.17]], 0.0065, (p) => { const collar = ellipsoid(p, [0, 0.555, 0.03], [0.078, 0.085, 0.085]); const top = mixc(SH, S, sstep(0.006, -0.006, collar)); return mixc(PA, top, sstep(0.0, 0.03, p[1])); }));
37
+ // head
38
+ this.head = G(this.spine, [0, 0.58, 0]);
39
+ add(this.head, sculpt('head' + face + c.skin, (p) => {
40
+ let d = ellipsoid(p, [0, 0.15, -0.005], [0.108, 0.128, 0.118]);
41
+ if (!face) return smin(d, capsule(p, [0, -0.02, 0], [0, 0.06, 0.01], 0.05), 0.05);
42
+ d = smin(d, ellipsoid(p, [0, 0.072, 0.03], [0.094, 0.082, 0.092]), 0.05);
43
+ d = smin(d, ellipsoid(p, [0, 0.018, 0.058], [0.043, 0.033, 0.038]), 0.04);
44
+ for (const s of [-1, 1]) { d = smin(d, ellipsoid(p, [s * 0.052, 0.075, 0.068], [0.038, 0.032, 0.032]), 0.03); d = smin(d, ellipsoid(p, [s * 0.108, 0.105, -0.005], [0.017, 0.033, 0.024]), 0.012); d = ssub(d, sphere(p, [s * 0.041, 0.124, 0.112], 0.026), 0.018); }
45
+ d = smin(d, capsule(p, [0, 0.12, 0.104], [0, 0.088, 0.117], 0.009, 0.013), 0.02);
46
+ d = smin(d, sphere(p, [0, 0.082, 0.113], 0.016), 0.016);
47
+ d = smin(d, ellipsoid(p, [0, 0.043, 0.104], [0.026, 0.011, 0.012]), 0.012);
48
+ d = ssub(d, capsule(p, [-0.024, 0.039, 0.116], [0.024, 0.039, 0.116], 0.0035), 0.004);
49
+ return smin(d, capsule(p, [0, -0.04, -0.005], [0, 0.05, 0.005], 0.048), 0.04);
50
+ }, [[-0.14, -0.06, -0.14], [0.14, 0.3, 0.16]], 0.0038, () => S));
51
+ if (face) {
52
+ const white = new THREE.MeshPhysicalMaterial({ color: '#F7F4EF', roughness: 0.2, clearcoat: 1 });
53
+ const iris = new THREE.MeshStandardMaterial({ color: c.iris, roughness: 0.3 }), pupil = new THREE.MeshBasicMaterial({ color: '#0B0907' });
54
+ this.eyes = [];
55
+ for (const s of [-1, 1]) {
56
+ const e = new THREE.Group(); e.position.set(s * 0.041, 0.124, 0.091); this.head.add(e); this.eyes.push(e);
57
+ const ball = new THREE.Mesh(new THREE.SphereGeometry(0.022, 32, 24), white); e.add(ball);
58
+ const ir = new THREE.Mesh(new THREE.CircleGeometry(0.0108, 32), iris); ir.position.z = 0.0222; e.add(ir);
59
+ const pu = new THREE.Mesh(new THREE.CircleGeometry(0.0052, 24), pupil); pu.position.z = 0.0224; e.add(pu);
60
+ const hl = new THREE.Mesh(new THREE.CircleGeometry(0.0022, 12), new THREE.MeshBasicMaterial({ color: '#FFFFFF' })); hl.position.set(0.0035, 0.004, 0.0226); e.add(hl);
61
+ // eyelids (skin): upper lid covers the top of the eye; this.lids lets shots blink / squint / widen
62
+ const lidM = new THREE.MeshPhysicalMaterial({ color: c.skin, roughness: 0.55, sheen: 0.35, sheenColor: new THREE.Color('#ffd6c2') });
63
+ const lid = new THREE.Mesh(new THREE.SphereGeometry(0.0236, 32, 16, 0, Math.PI * 2, 0, Math.PI * 0.36), lidM); lid.position.set(s * 0.041, 0.124, 0.091); lid.rotation.x = 0.12; this.head.add(lid);
64
+ const low = new THREE.Mesh(new THREE.SphereGeometry(0.0234, 32, 16, 0, Math.PI * 2, Math.PI * 0.78, Math.PI * 0.22), lidM); low.rotation.x = -0.25; low.position.copy(lid.position); this.head.add(low);
65
+ (this.lids ||= []).push(lid);
66
+ }
67
+ const HA = rgb(c.hair);
68
+ add(this.head, sculpt('hair' + c.hair, (p) => {
69
+ let d = ellipsoid(p, [0, 0.168, -0.014], [0.118, 0.138, 0.13]);
70
+ const line = 0.05 + 0.16 * Math.min(1, Math.max(0, (p[2] + 0.04) / 0.14)); // hairline: low at the back, high at the front
71
+ d = smax(d, -(p[1] - line), 0.02);
72
+ d = smin(d, ellipsoid(p, [0.02, 0.262, 0.05], [0.085, 0.045, 0.075]), 0.04); // quiff
73
+ d += 0.006 * noise3(p[0] * 45, p[1] * 25, p[2] * 45);
74
+ for (const s of [-1, 1]) d = Math.min(d, capsule(p, [s * 0.022, 0.158, 0.119], [s * 0.062, 0.162, 0.108], 0.0065, 0.005)); // brows
75
+ return d;
76
+ }, [[-0.15, 0.02, -0.16], [0.15, 0.33, 0.16]], 0.004, () => HA));
77
+ }
78
+ // arms
79
+ this.arm = {};
80
+ for (const s of [-1, 1]) {
81
+ const k = s < 0 ? 'L' : 'R', sh = G(this.spine, [s * 0.2, 0.43, -0.005]);
82
+ add(sh, sculpt('uarm' + K, (p) => smin(capsule(p, [0, 0, 0], [0, -0.27, 0], 0.048, 0.04), capsule(p, [0, 0.0, 0], [0, -0.13, 0], 0.062, 0.056), 0.02),
83
+ [[-0.08, -0.33, -0.08], [0.08, 0.07, 0.08]], 0.005, (p) => mixc(S, SH, sstep(-0.142, -0.128, p[1]))));
84
+ const el = G(sh, [0, -0.27, 0]);
85
+ add(el, sculpt('farm' + s + c.skin, (p) => {
86
+ let d = capsule(p, [0, 0, 0], [0, -0.23, 0.005], 0.039, 0.031);
87
+ d = smin(d, ellipsoid(p, [0, -0.29, 0.008], [0.041, 0.055, 0.021]), 0.03);
88
+ d = smin(d, capsule(p, [0, -0.31, 0.008], [0, -0.365, 0.018], 0.022, 0.017), 0.02);
89
+ for (const fx of [-0.011, 0.011]) d = ssub(d, capsule(p, [fx, -0.335, 0.035], [fx, -0.4, 0.04], 0.0025), 0.003);
90
+ d = smin(d, capsule(p, [-s * 0.028, -0.26, 0.018], [-s * 0.04, -0.31, 0.036], 0.012, 0.01), 0.012);
91
+ return d;
92
+ }, [[-0.08, -0.41, -0.06], [0.08, 0.06, 0.08]], 0.005, () => S));
93
+ this.arm[k] = { sh, el };
94
+ }
95
+ // legs
96
+ this.leg = {};
97
+ for (const s of [-1, 1]) {
98
+ const k = s < 0 ? 'L' : 'R', hip = G(this.hips, [s * 0.088, -0.03, 0]);
99
+ add(hip, sculpt('thigh' + c.pants, (p) => capsule(p, [0, 0, 0], [0, -0.42, 0.005], 0.082, 0.06), [[-0.1, -0.5, -0.1], [0.1, 0.1, 0.1]], 0.007, () => PA));
100
+ const kn = G(hip, [0, -0.42, 0.005]);
101
+ add(kn, sculpt('shin' + c.pants + c.shoes, (p) => {
102
+ let d = capsule(p, [0, 0, 0], [0, -0.38, -0.005], 0.058, 0.045);
103
+ d = smin(d, ellipsoid(p, [0, -0.43, 0.045], [0.056, 0.05, 0.12]), 0.04);
104
+ return smax(d, -(p[1] + 0.475), 0.01);
105
+ }, [[-0.09, -0.5, -0.1], [0.09, 0.07, 0.19]], 0.006, (p) => (p[1] > -0.36 ? PA : SO)));
106
+ this.leg[k] = { hip, kn };
107
+ }
108
+ this.pose({});
109
+ }
110
+ /** pose in degrees: spine/chest/head [x, y, z]; shL/shR [x (forward +), y, z (out +)]; elL/elR bend; hipL/hipR [x (forward +), y, z]; knL/knR bend */
111
+ pose(q) {
112
+ const r3 = (g, a = [0, 0, 0]) => g.rotation.set(D(a[0]), D(a[1]), D(a[2]));
113
+ r3(this.spine, q.spine); r3(this.head, q.head);
114
+ r3(this.arm.L.sh, [-(q.shL?.[0] ?? 0), q.shL?.[1] ?? 0, -(q.shL?.[2] ?? 6)]); this.arm.L.el.rotation.set(-D(q.elL ?? 10), 0, 0);
115
+ r3(this.arm.R.sh, [-(q.shR?.[0] ?? 0), q.shR?.[1] ?? 0, q.shR?.[2] ?? 6]); this.arm.R.el.rotation.set(-D(q.elR ?? 10), 0, 0);
116
+ r3(this.leg.L.hip, [-(q.hipL?.[0] ?? 0), q.hipL?.[1] ?? 0, -(q.hipL?.[2] ?? 2)]); this.leg.L.kn.rotation.set(D(q.knL ?? 2), 0, 0);
117
+ r3(this.leg.R.hip, [-(q.hipR?.[0] ?? 0), q.hipR?.[1] ?? 0, q.hipR?.[2] ?? 2]); this.leg.R.kn.rotation.set(D(q.knR ?? 2), 0, 0);
118
+ if (this.lids) this.lids.forEach((l) => (l.rotation.x = 0.12 + (q.lid ?? 0) * 1.25)); // lid: -0.4 wide open … 0 normal … 1 closed
119
+ if (q.look && this.eyes) this.eyes.forEach((e) => e.rotation.set(D(q.look[1] || 0), D(q.look[0] || 0), 0));
120
+ this.group.updateMatrixWorld(true);
121
+ }
122
+ /** walking pose at phase ph (radians) */
123
+ walk(ph, amt = 1) { const s = Math.sin(ph) * amt; this.pose({ hipL: [s * 26, 0, 2], hipR: [-s * 26, 0, 2], knL: Math.max(0, -Math.sin(ph + 0.6)) * 40 * amt + 4, knR: Math.max(0, Math.sin(ph + 0.6)) * 40 * amt + 4, shL: [-s * 20, 0, 6], shR: [s * 20, 0, 6], elL: 18, elR: 18, spine: [3, s * 4, 0] }); this.hips.position.y = 0.93 - Math.abs(Math.cos(ph)) * 0.012 * amt; }
124
+ /** swap the body (not the head) to another material, e.g. x-ray glass; null restores */
125
+ setBodyMaterial(m) { this.parts.forEach((p) => { if (p.parent !== this.head) p.material = m || this.mat; p.castShadow = !m; }); }
126
+ /** every part to one material (Night File silhouettes) */
127
+ setAllMaterial(m) { this.parts.forEach((p) => (p.material = m)); }
128
+ }
@@ -0,0 +1,151 @@
1
+ // Night File: the COMPONENT ZOO. Unsolved mysteries and creepy facts: dark rooms with ONE light source, faceless
2
+ // silhouettes rim-lit in red (the person the story is about glows solid red), case files, typewriter dates, film grain.
3
+ import { ctx, W, H, TAU, lerp, clamp, rnd, rr, circle, ell, line } from './lib.js';
4
+
5
+ export const P = {
6
+ void: '#0A0C11', room: '#151A24', mid: '#1F2633', light: '#2B3343', beam: '#F1D9A6', red: '#E4322B', redDeep: '#8E1D1A',
7
+ cream: '#EAE3D2', tape: '#E9C46A', steel: '#5B6577', paper: '#D8CFBA', manila: '#B8955A', cork: '#4A3426', ink: '#06070A',
8
+ };
9
+ const MONO = 'FreeMono';
10
+
11
+ // ═════════════════════════ PEOPLE: faceless silhouettes ═════════════════════════
12
+ const rad = (d) => d * Math.PI / 180;
13
+ function body(o, col, grow) {
14
+ const h = o.h || 700, d = o.dir || 1, wk = o.walk, sw = wk != null ? Math.sin(wk) : 0, lw = h * 0.075 + grow;
15
+ const hip = [o.x, o.y - h * 0.47], sh = [o.x, o.y - h * 0.8];
16
+ const leg = (a, k) => { const kn = [hip[0] + Math.sin(rad(a)) * h * 0.24 * d, hip[1] + Math.cos(rad(a)) * h * 0.24]; line([hip, kn, [kn[0] + Math.sin(rad(a - k)) * h * 0.23 * d, kn[1] + Math.cos(rad(a - k)) * h * 0.23]], col, lw); };
17
+ const arm = (a, e) => { const el = [sh[0] + Math.sin(rad(a)) * h * 0.18 * d, sh[1] + h * 0.03 + Math.cos(rad(a)) * h * 0.18]; line([[sh[0], sh[1] + h * 0.03], el, [el[0] + Math.sin(rad(a + e)) * h * 0.17 * d, el[1] + Math.cos(rad(a + e)) * h * 0.17]], col, lw * 0.85); };
18
+ const A = o.arms || { L: [wk != null ? -sw * 18 : -6, 8], R: [wk != null ? sw * 18 : 6, 10] };
19
+ const L = o.legs || { L: [wk != null ? sw * 22 : 4, wk != null ? Math.max(0, -sw) * 24 : 2], R: [wk != null ? -sw * 22 : -4, wk != null ? Math.max(0, sw) * 24 : 2] };
20
+ leg(L.L[0], L.L[1]); arm(A.L[0], A.L[1]); leg(L.R[0], L.R[1]);
21
+ ctx.beginPath(); ctx.moveTo(sh[0] - h * 0.11 - grow / 2, sh[1]); ctx.lineTo(sh[0] + h * 0.11 + grow / 2, sh[1]); ctx.lineTo(hip[0] + h * 0.08 + grow / 2, hip[1] + h * 0.02); ctx.lineTo(hip[0] - h * 0.08 - grow / 2, hip[1] + h * 0.02); ctx.closePath();
22
+ ctx.fillStyle = col; ctx.fill(); ctx.lineJoin = 'round'; ctx.lineWidth = h * 0.05 + grow; ctx.strokeStyle = col; ctx.stroke();
23
+ line([[sh[0], sh[1] - h * 0.02], [sh[0], sh[1] - h * 0.06]], col, h * 0.06 + grow);
24
+ ell(sh[0] + d * h * 0.01, sh[1] - h * 0.12, h * 0.068 + grow / 2, h * 0.083 + grow / 2, col);
25
+ arm(A.R[0], A.R[1]);
26
+ }
27
+ /**
28
+ * A faceless figure standing on (x, y). o = { h (default 700), dir, walk (phase), arms, legs (like Stick Story),
29
+ * glow: true = THE subject (solid glowing red), else a dark silhouette with a thin red rim light; dim 0..1 fades it }
30
+ */
31
+ export function figure(o) {
32
+ ctx.save(); ctx.globalAlpha = 1 - (o.dim || 0);
33
+ if (o.glow) { ctx.shadowColor = P.red; ctx.shadowBlur = 50; body(o, P.red, 0); ctx.shadowBlur = 18; body(o, P.red, 0); ctx.shadowBlur = 0; body(o, '#F04A3E', -6); }
34
+ else { ctx.shadowColor = P.red; ctx.shadowBlur = 22; body(o, P.redDeep, 5); ctx.shadowBlur = 0; body(o, P.ink, 0); }
35
+ ctx.restore();
36
+ }
37
+
38
+ // ═════════════════════════ ROOMS & PLACES (full 1080x1920) ═════════════════════════
39
+ /** soft light cone from (x, y) down to the floor width at fy; a = strength */
40
+ export function beam(x, y, topW, botW, fy, a = 0.22) {
41
+ const g = ctx.createLinearGradient(0, y, 0, fy); g.addColorStop(0, `rgba(241,217,166,${a})`); g.addColorStop(1, 'rgba(241,217,166,0)');
42
+ ctx.beginPath(); ctx.moveTo(x - topW / 2, y); ctx.lineTo(x + topW / 2, y); ctx.lineTo(x + botW / 2, fy); ctx.lineTo(x - botW / 2, fy); ctx.closePath(); ctx.fillStyle = g; ctx.fill();
43
+ ell(x, fy, botW * 0.45, 40, `rgba(241,217,166,${a * 0.6})`);
44
+ }
45
+ /** one-point-perspective corridor with doors and one ceiling light. o = { light: 0..1 flicker, doorOpen: 0..1 (last door) } */
46
+ export function corridor(o = {}) {
47
+ const L = o.light ?? 1, vx = 540, vy = 760, bw = 300, bh = 420;
48
+ ctx.fillStyle = P.void; ctx.fillRect(-300, -300, W + 600, H + 600);
49
+ const poly = (pts, c) => { ctx.beginPath(); pts.forEach((p, i) => (i ? ctx.lineTo(...p) : ctx.moveTo(...p))); ctx.closePath(); ctx.fillStyle = c; ctx.fill(); };
50
+ poly([[-300, -300], [vx - bw / 2, vy - bh / 2], [vx - bw / 2, vy + bh / 2], [-300, H + 300]], P.room);
51
+ poly([[W + 300, -300], [vx + bw / 2, vy - bh / 2], [vx + bw / 2, vy + bh / 2], [W + 300, H + 300]], P.room);
52
+ poly([[-300, H + 300], [vx - bw / 2, vy + bh / 2], [vx + bw / 2, vy + bh / 2], [W + 300, H + 300]], P.mid);
53
+ poly([[-300, -300], [vx - bw / 2, vy - bh / 2], [vx + bw / 2, vy - bh / 2], [W + 300, -300]], '#10141C');
54
+ ctx.fillStyle = P.light; ctx.fillRect(vx - bw / 2, vy - bh / 2, bw, bh);
55
+ rr(vx - 60, vy - 80, 120, 280, 6); ctx.fillStyle = o.doorOpen ? '#000' : '#232A38'; ctx.fill();
56
+ if (o.doorOpen) { ctx.save(); ctx.globalAlpha = o.doorOpen; rr(vx - 60, vy - 80, 120, 280, 6); ctx.fillStyle = P.redDeep; ctx.fill(); ctx.restore(); }
57
+ for (const [s, k] of [[-1, 0.25], [-1, 0.6], [1, 0.4]]) { // side doors
58
+ const x1 = lerp(s < 0 ? -300 : W + 300, vx + s * bw / 2, k), x2 = lerp(s < 0 ? -300 : W + 300, vx + s * bw / 2, k + 0.12);
59
+ const yT = (x) => lerp(-300, vy - bh / 2, Math.abs(x - (s < 0 ? -300 : W + 300)) / Math.abs(vx + s * bw / 2 - (s < 0 ? -300 : W + 300)));
60
+ const yB = (x) => lerp(H + 300, vy + bh / 2, Math.abs(x - (s < 0 ? -300 : W + 300)) / Math.abs(vx + s * bw / 2 - (s < 0 ? -300 : W + 300)));
61
+ const t1 = lerp(yT(x1), yB(x1), 0.25), b1 = yB(x1) - 4, t2 = lerp(yT(x2), yB(x2), 0.25), b2 = yB(x2) - 4;
62
+ poly([[x1, t1], [x2, t2], [x2, b2], [x1, b1]], '#0E121A');
63
+ }
64
+ if (L > 0) { beam(vx, 260, 70, 760, 1500, 0.2 * L); rr(vx - 70, 250, 140, 18, 8); ctx.fillStyle = `rgba(241,217,166,${0.9 * L})`; ctx.fill(); }
65
+ }
66
+ /** a house at night with ONE lit window, a streetlight, trees. o = { lit: 0..1 window, moon } */
67
+ export function houseNight(o = {}) {
68
+ const g = ctx.createLinearGradient(0, 0, 0, H); g.addColorStop(0, '#0B0F1A'); g.addColorStop(1, '#151B28'); ctx.fillStyle = g; ctx.fillRect(-300, -300, W + 600, H + 600);
69
+ circle(820, 330, 70, '#D9D4C4'); circle(845, 315, 64, '#0D111C');
70
+ for (let i = 0; i < 6; i++) { const x = rnd(i) * W; ctx.beginPath(); ctx.moveTo(x - 90, 1250); ctx.lineTo(x, 900 - rnd(i + 3) * 200); ctx.lineTo(x + 90, 1250); ctx.fillStyle = '#0A0D14'; ctx.fill(); }
71
+ ctx.fillStyle = '#0E121B'; ctx.fillRect(-300, 1250, W + 600, H); ctx.beginPath(); ctx.moveTo(180, 820); ctx.lineTo(540, 560); ctx.lineTo(900, 820); ctx.closePath(); ctx.fillStyle = '#1A2030'; ctx.fill();
72
+ ctx.fillStyle = '#161B27'; ctx.fillRect(220, 820, 640, 440);
73
+ for (const [x, y, lit] of [[300, 900, 0], [640, 900, o.lit ?? 1], [300, 1080, 0]]) { rr(x, y, 140, 120, 4); ctx.fillStyle = lit ? `rgba(241,200,120,${0.25 + 0.75 * lit})` : '#0C1018'; ctx.fill(); if (lit) { ctx.save(); ctx.shadowColor = '#F1C878'; ctx.shadowBlur = 60 * lit; ctx.fill(); ctx.restore(); ctx.fillStyle = '#161B27'; ctx.fillRect(x + 66, y, 8, 120); } }
74
+ rr(500, 1100, 110, 160, 4); ctx.fillStyle = '#0C1018'; ctx.fill();
75
+ line([[960, 1300], [960, 700], [880, 680]], '#2A3140', 14); beam(880, 690, 40, 420, 1300, 0.18);
76
+ }
77
+ /** corkboard case wall: pinned photos and red string. o = { strings: 0..1 drawn } */
78
+ export function caseWall(o = {}) {
79
+ ctx.fillStyle = P.cork; ctx.fillRect(-300, -300, W + 600, H + 600);
80
+ for (let i = 0; i < 400; i++) { ctx.fillStyle = `rgba(0,0,0,${0.12 + rnd(i) * 0.15})`; ctx.fillRect(rnd(i + 1) * W, rnd(i + 2) * H, 4, 4); }
81
+ const pins = [[260, 420], [780, 360], [540, 820], [230, 1120], [830, 1080]];
82
+ const k = o.strings ?? 1; ctx.strokeStyle = P.red; ctx.lineWidth = 6;
83
+ [[0, 2], [1, 2], [2, 3], [2, 4], [0, 1]].forEach(([a, b], i) => { const p = clamp(k * 5 - i); if (p <= 0) return; ctx.beginPath(); ctx.moveTo(...pins[a]); ctx.lineTo(lerp(pins[a][0], pins[b][0], p), lerp(pins[a][1], pins[b][1], p)); ctx.stroke(); });
84
+ pins.forEach(([x, y], i) => { polaroid(x, y + 120, 0.9, (rnd(i) - 0.5) * 0.2, i === 2 ? 'glow' : 'dark'); circle(x, y, 14, P.red); });
85
+ }
86
+
87
+ // ═════════════════════════ PROPS & GRAPHICS ═════════════════════════
88
+ /** polaroid photo with a tiny silhouette inside ('dark' | 'glow' | 'house' | 'empty') */
89
+ export function polaroid(x, y, s = 1, rot = 0, kind = 'dark') {
90
+ ctx.save(); ctx.translate(x, y); ctx.rotate(rot); ctx.scale(s, s);
91
+ rr(-120, -140, 240, 280, 4); ctx.fillStyle = P.paper; ctx.fill(); ctx.fillStyle = '#1B212D'; ctx.fillRect(-100, -120, 200, 190);
92
+ if (kind === 'dark' || kind === 'glow') { ctx.save(); ctx.beginPath(); ctx.rect(-100, -120, 200, 190); ctx.clip(); figure({ x: 0, y: 140, h: 240, glow: kind === 'glow' }); ctx.restore(); }
93
+ if (kind === 'house') { ctx.beginPath(); ctx.moveTo(-60, 0); ctx.lineTo(0, -60); ctx.lineTo(60, 0); ctx.fillStyle = '#2B3343'; ctx.fill(); ctx.fillStyle = '#2B3343'; ctx.fillRect(-50, 0, 100, 60); ctx.fillStyle = '#F1C878'; ctx.fillRect(10, 15, 24, 20); }
94
+ ctx.restore();
95
+ }
96
+ /** manila case folder with a typed label and an UNSOLVED stamp (stamp 0..1) */
97
+ export function caseFile(x, y, s = 1, label = 'CASE NO. 94-1187', stamp = 1, rot = -0.05) {
98
+ ctx.save(); ctx.translate(x, y); ctx.rotate(rot); ctx.scale(s, s);
99
+ rr(-300, -230, 220, 60, 10); ctx.fillStyle = '#A58548'; ctx.fill();
100
+ rr(-320, -200, 640, 420, 12); ctx.fillStyle = P.manila; ctx.fill();
101
+ rr(-260, -150, 360, 70, 4); ctx.fillStyle = P.paper; ctx.fill();
102
+ ctx.font = `700 36px ${MONO}`; ctx.fillStyle = P.ink; ctx.textAlign = 'left'; ctx.textBaseline = 'middle'; ctx.fillText(label, -245, -113);
103
+ for (let i = 0; i < 3; i++) { ctx.fillStyle = 'rgba(0,0,0,0.25)'; ctx.fillRect(-260, -30 + i * 50, 420 - i * 90, 16); }
104
+ if (stamp > 0) { ctx.save(); ctx.translate(110, 120); ctx.rotate(-0.2); ctx.scale(lerp(1.8, 1, clamp(stamp)), lerp(1.8, 1, clamp(stamp))); ctx.globalAlpha = clamp(stamp * 2) * 0.9; rr(-170, -48, 340, 96, 8); ctx.strokeStyle = P.red; ctx.lineWidth = 9; ctx.stroke(); ctx.font = `700 64px ${MONO}`; ctx.fillStyle = P.red; ctx.textAlign = 'center'; ctx.fillText('UNSOLVED', 0, 4); ctx.restore(); }
105
+ ctx.restore();
106
+ }
107
+ /** wall clock showing h:m */
108
+ export function clock(x, y, s, hh, mm) {
109
+ ctx.save(); ctx.translate(x, y); ctx.scale(s, s); circle(0, 0, 150, '#2A303D'); circle(0, 0, 130, P.paper);
110
+ for (let i = 0; i < 12; i++) { ctx.save(); ctx.rotate(i * Math.PI / 6); ctx.fillStyle = P.ink; ctx.fillRect(-4, -122, 8, i % 3 ? 14 : 26); ctx.restore(); }
111
+ ctx.save(); ctx.rotate((hh % 12 + mm / 60) * Math.PI / 6); ctx.fillStyle = P.ink; ctx.fillRect(-7, -70, 14, 80); ctx.restore();
112
+ ctx.save(); ctx.rotate(mm * Math.PI / 30); ctx.fillStyle = P.ink; ctx.fillRect(-5, -108, 10, 118); ctx.restore(); circle(0, 0, 10, P.red); ctx.restore();
113
+ }
114
+ export function cassette(x, y, s = 1, spin = 0) {
115
+ ctx.save(); ctx.translate(x, y); ctx.scale(s, s); rr(-180, -110, 360, 220, 14); ctx.fillStyle = '#2A2F3A'; ctx.fill(); rr(-150, -85, 300, 80, 8); ctx.fillStyle = P.paper; ctx.fill();
116
+ ctx.font = `700 30px ${MONO}`; ctx.fillStyle = P.red; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillText('TAPE 3', 0, -45);
117
+ for (const sx of [-70, 70]) { circle(sx, 40, 34, P.ink); ctx.save(); ctx.translate(sx, 40); ctx.rotate(spin); for (let i = 0; i < 6; i++) { ctx.rotate(Math.PI / 3); ctx.fillStyle = P.paper; ctx.fillRect(-4, -24, 8, 14); } ctx.restore(); }
118
+ ctx.restore();
119
+ }
120
+ /** yellow evidence marker tent with a number */
121
+ export function marker(x, y, s, n) { ctx.save(); ctx.translate(x, y); ctx.scale(s, s); ctx.beginPath(); ctx.moveTo(-60, 0); ctx.lineTo(-40, -110); ctx.lineTo(40, -110); ctx.lineTo(60, 0); ctx.closePath(); ctx.fillStyle = P.tape; ctx.fill(); ctx.font = '900 70px Inter'; ctx.fillStyle = P.ink; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillText(String(n), 0, -52); ctx.restore(); }
122
+ /** hand-drawn red circle around (x, y); p 0..1 draws it on */
123
+ export function redCircle(x, y, rx, ry, p = 1) { if (p <= 0) return; ctx.beginPath(); for (let i = 0; i <= 60 * p; i++) { const a = -1.9 + i / 60 * (TAU + 0.5), k = 1 + 0.05 * Math.sin(i * 0.7); const px = x + Math.cos(a) * rx * k, py = y + Math.sin(a) * ry * k; i ? ctx.lineTo(px, py) : ctx.moveTo(px, py); } ctx.strokeStyle = P.red; ctx.lineWidth = 10; ctx.lineCap = 'round'; ctx.stroke(); }
124
+ /** typewriter date stamp, lower-left; p 0..1 types it on (with a cursor) */
125
+ export function dateStamp(line1, line2, p = 1, x = 90, y = 1240) {
126
+ const n1 = Math.floor(line1.length * clamp(p * 1.6)), n2 = Math.floor(line2.length * clamp(p * 1.6 - 0.6));
127
+ ctx.textAlign = 'left'; ctx.textBaseline = 'alphabetic'; ctx.shadowColor = 'rgba(0,0,0,0.8)'; ctx.shadowBlur = 12;
128
+ ctx.font = `700 92px ${MONO}`; ctx.fillStyle = P.cream; ctx.fillText(line1.slice(0, n1), x, y);
129
+ ctx.font = `700 56px ${MONO}`; ctx.fillStyle = P.red; ctx.fillText(line2.slice(0, n2), x, y + 76);
130
+ ctx.shadowBlur = 0; if (p < 1 && Math.floor(p * 20) % 2 === 0) { ctx.fillStyle = P.cream; ctx.fillRect(x + (n2 ? ctx.measureText(line2.slice(0, n2)).width : (ctx.font = `700 92px ${MONO}`, ctx.measureText(line1.slice(0, n1)).width)) + 6, y + (n2 ? 18 : -56), 26, n2 ? 46 : 64); }
131
+ }
132
+ /** black redaction bars over text lines (for "the file says…") */
133
+ export function redacted(x, y, widths, p = 1) { widths.forEach((w, i) => { ctx.fillStyle = P.ink; ctx.fillRect(x, y + i * 60, w * clamp(p * 2 - i * 0.3), 36); }); }
134
+
135
+ // ═════════════════════════ FILM LOOK (call last, before captions) ═════════════════════════
136
+ export function filmLook(t, vign = 0.75) {
137
+ const g = ctx.createRadialGradient(540, 900, 300, 540, 960, 1250); g.addColorStop(0, 'rgba(0,0,0,0)'); g.addColorStop(1, `rgba(0,0,0,${vign})`);
138
+ ctx.fillStyle = g; ctx.fillRect(-300, -300, W + 600, H + 600);
139
+ const f = Math.floor(t * 24); for (let i = 0; i < 900; i++) { ctx.fillStyle = rnd(i + f * 13) > 0.5 ? 'rgba(255,255,255,0.05)' : 'rgba(0,0,0,0.12)'; ctx.fillRect(rnd(i * 3 + f) * W, rnd(i * 7 + f * 2) * H, 3, 3); }
140
+ }
141
+
142
+ // ═════════════════════════ CAPTION LOOK ═════════════════════════
143
+ export const CAPLOOK = { font: `700 86px ${MONO}`, y: 1560, maxW: 940, fg: P.cream, hi: P.red };
144
+ export function captionMono(words, x, y, sc = 1, look = CAPLOOK) {
145
+ ctx.save(); ctx.translate(x, y); ctx.scale(sc, sc); ctx.font = look.font; ctx.textBaseline = 'middle'; ctx.textAlign = 'left';
146
+ const sp = 30, ws = words.map((w) => ctx.measureText(w.txt).width), tw = ws.reduce((a, b) => a + b, 0) + sp * (words.length - 1);
147
+ const fit = Math.min(1, (look.maxW || 960) / tw); ctx.scale(fit, fit);
148
+ ctx.shadowColor = 'rgba(0,0,0,0.95)'; ctx.shadowBlur = 18; let cx = -tw / 2;
149
+ words.forEach((w, i) => { ctx.fillStyle = w.hi ? look.hi : look.fg; ctx.fillText(w.txt, cx, 0); cx += ws[i] + sp; });
150
+ ctx.restore();
151
+ }
@@ -0,0 +1,44 @@
1
+ // Inside Out engine: canvas, palette, math and drawing primitives.
2
+ // Every drawing function in the kit uses the shared `ctx` exported here (set once by main.js).
3
+ export const W = 1080, H = 1920, FPS = 30;
4
+ export let ctx = null;
5
+ export function setCtx(c) { ctx = c; }
6
+
7
+ // The style sheet palette. Only these (plus the derived shades) appear on screen.
8
+ export const C = {
9
+ skin: '#E8B89A', pink: '#E57A8A', red: '#D62839', cyan: '#4FD1E8', yellow: '#FFD43B', bg: '#F4F1EA',
10
+ // derived shades (darker / lighter tones of the palette, used for flat shading)
11
+ pinkLight: '#F29AA7', pinkDark: '#C9566E', skinShade: '#D49C7E', navy: '#0E1A2B', xnavy: '#0B2238',
12
+ hair: '#3B2A20', hairHi: '#5A4030', shirt: '#3A7BD5', shirtShade: '#2F67BE', pants: '#1F2A44', pantsShade: '#18213A',
13
+ ink: '#1A1A1E', mouth: '#6B2A2A', gum: '#F7F4EE', gumEdge: '#C9C2B5', white: '#FFFFFF',
14
+ stomachBg: '#B83A55', stomachBgDark: '#A3304A', stomachFold: '#D4637C', floor: '#E4DCCB', sky: '#BFE3F2',
15
+ leaf: '#5BAE6A', pot: '#C8734A', watch: '#1E2A44',
16
+ };
17
+
18
+ // ---------- math ----------
19
+ export const clamp = (v, a = 0, b = 1) => Math.max(a, Math.min(b, v));
20
+ export const lerp = (a, b, t) => a + (b - a) * t;
21
+ export const seg = (t, a, b) => clamp((t - a) / ((b - a) || 1e-6));
22
+ export const eo = (t) => 1 - Math.pow(1 - t, 3);
23
+ export const eio = (t) => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2);
24
+ export const eob = (t) => { const c1 = 1.70158, c3 = c1 + 1; return 1 + c3 * Math.pow(t - 1, 3) + c1 * Math.pow(t - 1, 2); };
25
+ export const rnd = (i) => { const x = Math.sin(i * 127.1 + 311.7) * 43758.5453; return x - Math.floor(x); };
26
+ export const TAU = Math.PI * 2;
27
+
28
+ // ---------- primitives ----------
29
+ export function rr(x, y, w, h, r) { ctx.beginPath(); ctx.roundRect(x, y, w, h, r); }
30
+ export function circle(x, y, r, fill) { ctx.beginPath(); ctx.arc(x, y, r, 0, TAU); ctx.fillStyle = fill; ctx.fill(); }
31
+ export function ell(x, y, rx, ry, fill, rot = 0) { ctx.beginPath(); ctx.ellipse(x, y, rx, ry, rot, 0, TAU); ctx.fillStyle = fill; ctx.fill(); }
32
+ export function line(pts, color, w) {
33
+ ctx.beginPath(); ctx.moveTo(pts[0][0], pts[0][1]);
34
+ for (let i = 1; i < pts.length; i++) ctx.lineTo(pts[i][0], pts[i][1]);
35
+ ctx.strokeStyle = color; ctx.lineWidth = w; ctx.lineCap = 'round'; ctx.lineJoin = 'round'; ctx.stroke();
36
+ }
37
+ export function fillAll(color) { ctx.fillStyle = color; ctx.fillRect(-300, -300, W + 600, H + 600); }
38
+ /** outlined bold text (the caption look), centred at x, y */
39
+ export function bigText(text, x, y, size, fill = C.white, rot = 0, sc = 1) {
40
+ ctx.save(); ctx.translate(x, y); ctx.rotate(rot); ctx.scale(sc, sc);
41
+ ctx.font = `900 ${size}px Inter`; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.lineJoin = 'round';
42
+ ctx.lineWidth = size * 0.2; ctx.strokeStyle = C.ink; ctx.strokeText(text, 0, 0); ctx.fillStyle = fill; ctx.fillText(text, 0, 0);
43
+ ctx.restore();
44
+ }
@@ -0,0 +1,79 @@
1
+ // Signed-distance sculpting: build smooth, clay-like 3D shapes from simple primitives, then mesh them (surface nets).
2
+ // Everything stylized-3D in this style (people, organs, props) is sculpted here, so shapes blend smoothly with no seams.
3
+ import * as THREE from 'three';
4
+
5
+ // ---------- primitives (p = [x, y, z]) ----------
6
+ export const len = (x, y, z) => Math.sqrt(x * x + y * y + z * z);
7
+ export const sphere = (p, c, r) => len(p[0] - c[0], p[1] - c[1], p[2] - c[2]) - r;
8
+ /** ellipsoid (approximate, good for sculpting) */
9
+ export function ellipsoid(p, c, r) {
10
+ const x = (p[0] - c[0]) / r[0], y = (p[1] - c[1]) / r[1], z = (p[2] - c[2]) / r[2];
11
+ const k0 = len(x, y, z), k1 = len(x / r[0], y / r[1], z / r[2]);
12
+ return k0 * (k0 - 1) / (k1 || 1e-9);
13
+ }
14
+ /** capsule from a to b with radius ra at a and rb at b (a round cone) */
15
+ export function capsule(p, a, b, ra, rb = ra) {
16
+ const bax = b[0] - a[0], bay = b[1] - a[1], baz = b[2] - a[2], pax = p[0] - a[0], pay = p[1] - a[1], paz = p[2] - a[2];
17
+ const h = Math.max(0, Math.min(1, (pax * bax + pay * bay + paz * baz) / (bax * bax + bay * bay + baz * baz)));
18
+ return len(pax - bax * h, pay - bay * h, paz - baz * h) - (ra + (rb - ra) * h);
19
+ }
20
+ /** rounded box centred at c with half-size s and corner radius r */
21
+ export function rbox(p, c, s, r) {
22
+ const qx = Math.abs(p[0] - c[0]) - s[0] + r, qy = Math.abs(p[1] - c[1]) - s[1] + r, qz = Math.abs(p[2] - c[2]) - s[2] + r;
23
+ return len(Math.max(qx, 0), Math.max(qy, 0), Math.max(qz, 0)) + Math.min(Math.max(qx, qy, qz), 0) - r;
24
+ }
25
+ export function torus(p, c, R, r) { const x = p[0] - c[0], y = p[1] - c[1], z = p[2] - c[2]; const q = Math.sqrt(x * x + z * z) - R; return Math.sqrt(q * q + y * y) - r; }
26
+ /** smooth union / subtraction / intersection (k = blend size in metres) */
27
+ export function smin(a, b, k) { const h = Math.max(k - Math.abs(a - b), 0) / k; return Math.min(a, b) - h * h * k * 0.25; }
28
+ export function smax(a, b, k) { return -smin(-a, -b, k); }
29
+ export const ssub = (a, b, k) => smax(a, -b, k);
30
+ /** cheap smooth 3D value noise in [-1, 1] (for hair clumps, organic surfaces) */
31
+ export function noise3(x, y, z) {
32
+ const h = (i, j, k) => { const s = Math.sin(i * 127.1 + j * 311.7 + k * 74.7) * 43758.5453; return (s - Math.floor(s)) * 2 - 1; };
33
+ const xi = Math.floor(x), yi = Math.floor(y), zi = Math.floor(z), xf = x - xi, yf = y - yi, zf = z - zi;
34
+ const u = xf * xf * (3 - 2 * xf), v = yf * yf * (3 - 2 * yf), w = zf * zf * (3 - 2 * zf), L = (a, b, t) => a + (b - a) * t;
35
+ return L(L(L(h(xi, yi, zi), h(xi + 1, yi, zi), u), L(h(xi, yi + 1, zi), h(xi + 1, yi + 1, zi), u), v), L(L(h(xi, yi, zi + 1), h(xi + 1, yi, zi + 1), u), L(h(xi, yi + 1, zi + 1), h(xi + 1, yi + 1, zi + 1), u), v), w);
36
+ }
37
+
38
+ /**
39
+ * Mesh an SDF with naive surface nets. f(p) -> distance, bounds = [[x0,y0,z0],[x1,y1,z1]], step = cell size (m),
40
+ * color(p) -> [r, g, b] 0..1 (optional, becomes vertex colours). Normals come from the SDF gradient, so it's smooth.
41
+ */
42
+ export function mesh(f, bounds, step, color = null) {
43
+ const [mn, mx] = bounds, nx = Math.ceil((mx[0] - mn[0]) / step) + 1, ny = Math.ceil((mx[1] - mn[1]) / step) + 1, nz = Math.ceil((mx[2] - mn[2]) / step) + 1;
44
+ const V = new Float32Array(nx * ny * nz), id = (i, j, k) => i + nx * (j + ny * k), p = [0, 0, 0];
45
+ for (let k = 0; k < nz; k++) for (let j = 0; j < ny; j++) for (let i = 0; i < nx; i++) { p[0] = mn[0] + i * step; p[1] = mn[1] + j * step; p[2] = mn[2] + k * step; V[id(i, j, k)] = f(p); }
46
+ const cell = new Int32Array((nx - 1) * (ny - 1) * (nz - 1)).fill(-1), cid = (i, j, k) => i + (nx - 1) * (j + (ny - 1) * k);
47
+ const pos = [], EDGES = [[0, 1], [2, 3], [4, 5], [6, 7], [0, 2], [1, 3], [4, 6], [5, 7], [0, 4], [1, 5], [2, 6], [3, 7]];
48
+ const cv = new Float32Array(8);
49
+ for (let k = 0; k < nz - 1; k++) for (let j = 0; j < ny - 1; j++) for (let i = 0; i < nx - 1; i++) {
50
+ let mask = 0; for (let c = 0; c < 8; c++) { cv[c] = V[id(i + (c & 1), j + ((c >> 1) & 1), k + ((c >> 2) & 1))]; if (cv[c] < 0) mask |= 1 << c; }
51
+ if (mask === 0 || mask === 255) continue;
52
+ let sx = 0, sy = 0, sz = 0, n = 0;
53
+ for (const [a, b] of EDGES) {
54
+ if ((cv[a] < 0) === (cv[b] < 0)) continue;
55
+ const t = cv[a] / (cv[a] - cv[b]);
56
+ sx += (a & 1) + t * ((b & 1) - (a & 1)); sy += ((a >> 1) & 1) + t * (((b >> 1) & 1) - ((a >> 1) & 1)); sz += ((a >> 2) & 1) + t * (((b >> 2) & 1) - ((a >> 2) & 1)); n++;
57
+ }
58
+ cell[cid(i, j, k)] = pos.length / 3;
59
+ pos.push(mn[0] + (i + sx / n) * step, mn[1] + (j + sy / n) * step, mn[2] + (k + sz / n) * step);
60
+ }
61
+ const idx = [];
62
+ const quad = (a, b, c, d, flip) => { if (a < 0 || b < 0 || c < 0 || d < 0) return; flip ? idx.push(a, c, b, a, d, c) : idx.push(a, b, c, a, c, d); };
63
+ for (let k = 1; k < nz - 1; k++) for (let j = 1; j < ny - 1; j++) for (let i = 0; i < nx - 1; i++) { const s0 = V[id(i, j, k)] < 0; if (s0 === (V[id(i + 1, j, k)] < 0)) continue; quad(cell[cid(i, j - 1, k - 1)], cell[cid(i, j, k - 1)], cell[cid(i, j, k)], cell[cid(i, j - 1, k)], !s0); }
64
+ for (let k = 1; k < nz - 1; k++) for (let j = 0; j < ny - 1; j++) for (let i = 1; i < nx - 1; i++) { const s0 = V[id(i, j, k)] < 0; if (s0 === (V[id(i, j + 1, k)] < 0)) continue; quad(cell[cid(i - 1, j, k - 1)], cell[cid(i - 1, j, k)], cell[cid(i, j, k)], cell[cid(i, j, k - 1)], !s0); }
65
+ for (let k = 0; k < nz - 1; k++) for (let j = 1; j < ny - 1; j++) for (let i = 1; i < nx - 1; i++) { const s0 = V[id(i, j, k)] < 0; if (s0 === (V[id(i, j, k + 1)] < 0)) continue; quad(cell[cid(i - 1, j - 1, k)], cell[cid(i, j - 1, k)], cell[cid(i, j, k)], cell[cid(i - 1, j, k)], !s0); }
66
+ const nrm = new Float32Array(pos.length), col = color ? new Float32Array(pos.length) : null, e = step * 0.5, q = [0, 0, 0];
67
+ for (let v = 0; v < pos.length; v += 3) {
68
+ const x = pos[v], y = pos[v + 1], z = pos[v + 2], g = (dx, dy, dz) => { q[0] = x + dx; q[1] = y + dy; q[2] = z + dz; return f(q); };
69
+ let gx = g(e, 0, 0) - g(-e, 0, 0), gy = g(0, e, 0) - g(0, -e, 0), gz = g(0, 0, e) - g(0, 0, -e); const l = Math.hypot(gx, gy, gz) || 1;
70
+ nrm[v] = gx / l; nrm[v + 1] = gy / l; nrm[v + 2] = gz / l;
71
+ if (col) { q[0] = x; q[1] = y; q[2] = z; const c = color(q); col[v] = c[0]; col[v + 1] = c[1]; col[v + 2] = c[2]; }
72
+ }
73
+ const geo = new THREE.BufferGeometry();
74
+ geo.setAttribute('position', new THREE.Float32BufferAttribute(pos, 3)); geo.setAttribute('normal', new THREE.BufferAttribute(nrm, 3));
75
+ if (col) geo.setAttribute('color', new THREE.BufferAttribute(col, 3));
76
+ geo.setIndex(idx); return geo;
77
+ }
78
+ /** hex '#rrggbb' -> linear [r, g, b] for vertex colours */
79
+ export function rgb(hex) { const c = new THREE.Color(hex); return [c.r, c.g, c.b]; }