@auscera/cleoedits 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/README.md +62 -2
  2. package/cli.mjs +149 -0
  3. package/lib/dependencies.mjs +384 -0
  4. package/lib/run.mjs +114 -0
  5. package/lib/workspace.mjs +167 -0
  6. package/package.json +240 -3
  7. package/workspace/.agents/skills/cleoedits/SKILL.md +29 -0
  8. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/audiogram.json +41 -0
  9. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/facebook.json +48 -0
  10. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/linkedin.json +48 -0
  11. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/podcast.json +23 -0
  12. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/reels.json +48 -0
  13. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/shorts.json +48 -0
  14. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/tiktok.json +48 -0
  15. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/x.json +48 -0
  16. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/youtube-shorts.json +48 -0
  17. package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/youtube.json +48 -0
  18. package/workspace/.agents/skills/cleoedits/assets/reel_effects/assets/LICENSE-SimpleIcons +30 -0
  19. package/workspace/.agents/skills/cleoedits/assets/reel_effects/assets/logos.json +1 -0
  20. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Anton-Regular.ttf +0 -0
  21. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/ArchivoBlack-Regular.ttf +0 -0
  22. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/InstrumentSerif-Italic.ttf +0 -0
  23. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Inter.ttf +0 -0
  24. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/LICENSE-PermanentMarker.txt +202 -0
  25. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Montserrat.ttf +0 -0
  26. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Anton.txt +93 -0
  27. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-ArchivoBlack.txt +93 -0
  28. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-InstrumentSerif.txt +93 -0
  29. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Inter.txt +93 -0
  30. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Montserrat.txt +93 -0
  31. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-PlayfairDisplay.txt +93 -0
  32. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Poppins.txt +93 -0
  33. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-SpaceMono.txt +93 -0
  34. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PermanentMarker-Regular.ttf +0 -0
  35. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PlayfairDisplay-Italic.ttf +0 -0
  36. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PlayfairDisplay.ttf +0 -0
  37. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-Black.ttf +0 -0
  38. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-Bold.ttf +0 -0
  39. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-ExtraBold.ttf +0 -0
  40. package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/SpaceMono-Bold.ttf +0 -0
  41. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/LICENSE-MediaPipe +218 -0
  42. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/LICENSE-YuNet +21 -0
  43. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/NOTICE.md +4 -0
  44. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/selfie_segmenter.tflite +0 -0
  45. package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/yunet.onnx +0 -0
  46. package/workspace/.agents/skills/cleoedits/assets/video_styles/LICENSE +21 -0
  47. package/workspace/.agents/skills/cleoedits/assets/video_styles/audio-app-ui/STYLE.md +65 -0
  48. package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/STYLE.md +53 -0
  49. package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/index.html +328 -0
  50. package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/studio.js +57 -0
  51. package/workspace/.agents/skills/cleoedits/assets/video_styles/data-story/STYLE.md +65 -0
  52. package/workspace/.agents/skills/cleoedits/assets/video_styles/data-story/index.html +575 -0
  53. package/workspace/.agents/skills/cleoedits/assets/video_styles/design-app-ui/STYLE.md +68 -0
  54. package/workspace/.agents/skills/cleoedits/assets/video_styles/editor-ui/STYLE.md +73 -0
  55. package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/STYLE.md +54 -0
  56. package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/index.html +189 -0
  57. package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/studio.js +57 -0
  58. package/workspace/.agents/skills/cleoedits/assets/video_styles/explainer-diagram/STYLE.md +64 -0
  59. package/workspace/.agents/skills/cleoedits/assets/video_styles/explainer-diagram/index.html +620 -0
  60. package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/STYLE.md +55 -0
  61. package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/index.html +238 -0
  62. package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/studio.js +57 -0
  63. package/workspace/.agents/skills/cleoedits/assets/video_styles/growing-city/STYLE.md +66 -0
  64. package/workspace/.agents/skills/cleoedits/assets/video_styles/growing-city/index.html +602 -0
  65. package/workspace/.agents/skills/cleoedits/assets/video_styles/ink-line/STYLE.md +66 -0
  66. package/workspace/.agents/skills/cleoedits/assets/video_styles/ink-line/index.html +777 -0
  67. package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/STYLE.md +56 -0
  68. package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/index.html +186 -0
  69. package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/studio.js +57 -0
  70. package/workspace/.agents/skills/cleoedits/assets/video_styles/motion-app-ui/STYLE.md +68 -0
  71. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/STYLE.md +56 -0
  72. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/index.html +244 -0
  73. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/studio.js +57 -0
  74. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-world/STYLE.md +67 -0
  75. package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-world/index.html +663 -0
  76. package/workspace/.agents/skills/cleoedits/assets/video_styles/particle-field/STYLE.md +59 -0
  77. package/workspace/.agents/skills/cleoedits/assets/video_styles/particle-field/index.html +395 -0
  78. package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/STYLE.md +52 -0
  79. package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/index.html +194 -0
  80. package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/studio.js +57 -0
  81. package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/STYLE.md +58 -0
  82. package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/index.html +242 -0
  83. package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/studio.js +57 -0
  84. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/STYLE.md +53 -0
  85. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/index.html +138 -0
  86. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/studio.js +57 -0
  87. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-kinetic/STYLE.md +63 -0
  88. package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-kinetic/index.html +599 -0
  89. package/workspace/.agents/skills/cleoedits/assets/video_styles/time-travel/STYLE.md +65 -0
  90. package/workspace/.agents/skills/cleoedits/assets/video_styles/time-travel/index.html +1297 -0
  91. package/workspace/.agents/skills/cleoedits/assets/video_styles/weather-widget/STYLE.md +69 -0
  92. package/workspace/.agents/skills/cleoedits/assets/video_styles/weather-widget/index.html +674 -0
  93. package/workspace/.agents/skills/cleoedits/references/audio-clearervoice-elevenlabs.md +11 -0
  94. package/workspace/.agents/skills/cleoedits/references/ffmpeg-and-reels.md +15 -0
  95. package/workspace/.agents/skills/cleoedits/references/hyperframes-workflows.md +13 -0
  96. package/workspace/.agents/skills/cleoedits/references/kdenlive-cli-and-mcp.md +12 -0
  97. package/workspace/.agents/skills/cleoedits/references/motion-design-pipeline.md +7 -0
  98. package/workspace/.agents/skills/cleoedits/references/motion-taste-emil.md +5 -0
  99. package/workspace/.agents/skills/cleoedits/references/playwright-demo-capture.md +9 -0
  100. package/workspace/.agents/skills/cleoedits/references/remotion-workflows.md +13 -0
  101. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/LICENSE +21 -0
  102. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_ass_overlay.py +399 -0
  103. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/__init__.py +235 -0
  104. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/alpha.py +560 -0
  105. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/asr.py +1237 -0
  106. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/color.py +540 -0
  107. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/decision.py +2452 -0
  108. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/drawtext.py +290 -0
  109. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/emit.py +1309 -0
  110. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/emoji.py +518 -0
  111. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/fonts.py +875 -0
  112. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/pacing.py +263 -0
  113. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/pacing_edit.py +432 -0
  114. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/probe.py +1613 -0
  115. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/runner.py +3994 -0
  116. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/text.py +73 -0
  117. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/timeline.py +721 -0
  118. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/wrap.py +981 -0
  119. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_contract.py +2454 -0
  120. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_platforms.py +258 -0
  121. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_review.html +754 -0
  122. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_review.py +258 -0
  123. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_smartcut.py +450 -0
  124. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/audio.py +867 -0
  125. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/background.py +136 -0
  126. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/batch.py +1409 -0
  127. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/broll.py +282 -0
  128. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/caption.py +2207 -0
  129. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/check.py +815 -0
  130. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/color.py +695 -0
  131. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/crop.py +91 -0
  132. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/cropdetect.py +214 -0
  133. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/cut.py +2076 -0
  134. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/deinterlace.py +90 -0
  135. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/denoise.py +94 -0
  136. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/export.py +1033 -0
  137. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/fit.py +729 -0
  138. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/freeze.py +197 -0
  139. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/graphics.py +920 -0
  140. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/grid.py +235 -0
  141. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/insert.py +142 -0
  142. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/join.py +1083 -0
  143. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/look.py +475 -0
  144. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/loop.py +395 -0
  145. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/loudness.py +397 -0
  146. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/metadata.py +416 -0
  147. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/multicam.py +414 -0
  148. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/overlay.py +766 -0
  149. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/pad.py +121 -0
  150. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/probe.py +145 -0
  151. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/proxy.py +93 -0
  152. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/redact.py +162 -0
  153. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/render.py +2424 -0
  154. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/report.py +354 -0
  155. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/reverse.py +114 -0
  156. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/scenes.py +439 -0
  157. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sequence.py +285 -0
  158. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/silence.py +945 -0
  159. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/speedramp.py +193 -0
  160. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sphere.py +137 -0
  161. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/stabilize.py +141 -0
  162. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/straighten.py +120 -0
  163. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sync.py +500 -0
  164. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/verify.py +411 -0
  165. package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/waveform.py +502 -0
  166. package/workspace/.agents/skills/cleoedits/scripts/kdenlive_builder.py +284 -0
  167. package/workspace/.agents/skills/cleoedits/scripts/motion/LICENSE-claude-motion +21 -0
  168. package/workspace/.agents/skills/cleoedits/scripts/motion/LICENSE-motion-design +21 -0
  169. package/workspace/.agents/skills/cleoedits/scripts/motion/_media.py +43 -0
  170. package/workspace/.agents/skills/cleoedits/scripts/motion/pacing_check.py +90 -0
  171. package/workspace/.agents/skills/cleoedits/scripts/motion/storyboard.py +77 -0
  172. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/LICENSE +26 -0
  173. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/fx.py +2717 -0
  174. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/logos.py +194 -0
  175. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/sfx.py +105 -0
  176. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/trim.py +99 -0
  177. package/workspace/.agents/skills/cleoedits/scripts/reel_effects/words.py +60 -0
  178. package/workspace/.claude/commands/blender-3d.md +12 -0
  179. package/workspace/.claude/commands/business-short-form-reels.md +12 -0
  180. package/workspace/.claude/commands/color-grade.md +12 -0
  181. package/workspace/.claude/commands/cutout-grid-reel.md +12 -0
  182. package/workspace/.claude/commands/depth-ui-reel.md +12 -0
  183. package/workspace/.claude/commands/explainer-panel-reel.md +12 -0
  184. package/workspace/.claude/commands/freeze-frame.md +12 -0
  185. package/workspace/.claude/commands/glass-graph.md +12 -0
  186. package/workspace/.claude/commands/over-the-shoulder.md +12 -0
  187. package/workspace/.claude/commands/personal-short-form-reels.md +12 -0
  188. package/workspace/.claude/commands/ranking-format.md +12 -0
  189. package/workspace/.claude/commands/relight.md +12 -0
  190. package/workspace/.claude/commands/reverse-engineer.md +12 -0
  191. package/workspace/.claude/commands/text-behind.md +12 -0
  192. package/workspace/.claude/commands/tier-list.md +12 -0
  193. package/workspace/.claude-plugin/plugin.json +8 -0
  194. package/workspace/.npmignore +15 -0
  195. package/workspace/AGENTS.md +30 -0
  196. package/workspace/README.md +63 -0
  197. package/workspace/assets/fonts/TikTokSans-OFL.txt +93 -0
  198. package/workspace/assets/fonts/TikTokSans-Variable.ttf +0 -0
  199. package/workspace/assets/luts/clean_warm.cube +4917 -0
  200. package/workspace/assets/luts/golden_hour.cube +4917 -0
  201. package/workspace/assets/luts/moody_dark.cube +4917 -0
  202. package/workspace/assets/luts/teal_orange.cube +4917 -0
  203. package/workspace/assets/sfx/NOTICE.txt +1 -0
  204. package/workspace/assets/sfx/click.wav +0 -0
  205. package/workspace/assets/sfx/pop.wav +0 -0
  206. package/workspace/assets/sfx/riser.wav +0 -0
  207. package/workspace/assets/sfx/whoosh.wav +0 -0
  208. package/workspace/generators/hyperframes/index.html +39 -0
  209. package/workspace/generators/hyperframes/package.json +15 -0
  210. package/workspace/generators/hyperframes/pnpm-lock.yaml +1181 -0
  211. package/workspace/generators/hyperframes/pnpm-workspace.yaml +10 -0
  212. package/workspace/generators/remotion/eslint.config.mjs +3 -0
  213. package/workspace/generators/remotion/package.json +36 -0
  214. package/workspace/generators/remotion/pnpm-lock.yaml +4179 -0
  215. package/workspace/generators/remotion/pnpm-workspace.yaml +10 -0
  216. package/workspace/generators/remotion/remotion.config.ts +13 -0
  217. package/workspace/generators/remotion/src/Root.tsx +52 -0
  218. package/workspace/generators/remotion/src/index.css +1 -0
  219. package/workspace/generators/remotion/src/index.ts +4 -0
  220. package/workspace/generators/remotion/tsconfig.json +15 -0
  221. package/workspace/pipeline/scripts/_codec.py +28 -0
  222. package/workspace/pipeline/scripts/ai_media_api.py +109 -0
  223. package/workspace/pipeline/scripts/blender_render.py +166 -0
  224. package/workspace/pipeline/scripts/composite.py +49 -0
  225. package/workspace/pipeline/scripts/melt.sh +68 -0
  226. package/workspace/pipeline/scripts/normalize_audio.py +39 -0
  227. package/workspace/pipeline/scripts/person_matte.py +216 -0
  228. package/workspace/pipeline/scripts/record_demo.py +69 -0
  229. package/workspace/pipeline/scripts/whisper_cut.py +98 -0
  230. package/workspace-manifest.json +908 -0
@@ -0,0 +1,59 @@
1
+ # Ten thousand points
2
+
3
+ id: particle-field
4
+ Best for: AI and data openers, abstract intros, transitions between ideas, logo builds, music visuals, tech product teasers
5
+ Mood: smoke made of light that condenses into calm, clear forms in deep night.
6
+ Reference piece: styles/particle-field/index.html (14.5 s, does not loop)
7
+ Gallery video: gallery/videos/particle-field.mp4
8
+
9
+ ## Palette (hex)
10
+ - ground: #0A0F1C deep ink night (radial: #111A2C at the centre, #060912 at the edges)
11
+ - points: #F3EEE4 warm white
12
+ - grain: grey noise, overlay blend at 7%
13
+ - accent: #6FD3E8 soft cyan (the ONE accent, on exactly 5% of the points, the same 500 points all the way through)
14
+
15
+ ## Type
16
+ - Display: none. The piece has no words, by design.
17
+ - Labels: none. If you must add a word, use one quiet line of Inter 300, 28 px, #F3EEE4 at 70%.
18
+ - Font links (paste into <head>; all fonts are free):
19
+ none needed. If you add a word: <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300&display=swap">
20
+
21
+ ## Easing (numbers)
22
+ - land (form to form): power2.inOut (cubic), 0.9 s per point
23
+ - slam (sheet to line): power2.in, 0.7 s
24
+ - bloom (line to rose): power3.out (quartic), 1.2 s
25
+ - settle: damped sine wobble, 3 to 4% size, decay rate 3 per second
26
+ - stagger: each point starts up to 0.5 s late (by distance from centre, or by position along the form)
27
+
28
+ ## Motion rules
29
+ - Every change is a flow, never a pop. Points travel, they never appear or vanish mid-shot.
30
+ - In flight, points swirl through a noise field (70 to 150 px). They never move in straight lines.
31
+ - Light comes from density and depth only: near points are bigger and brighter, dense areas glow. No blur glow on single points.
32
+ - Each form has its own light: key plus rim on the sphere, slope light on the wave, side light on the rose.
33
+ - Trails are the same point drawn 3 more times a little earlier (1/80 s steps) at falling strength.
34
+ - A slow camera orbit gives near points parallax against far ones. A slow push-in carries the last hold.
35
+ - Pure function of time. Seeded noise and seeded random only.
36
+
37
+ ## Signature moves
38
+ - The cyan thread: the same 5% of points always sit on the middle of the form (equator, crest row, line core, inner petal edge).
39
+ - Smoke to sphere: curling filaments condense centre first into a lit globe.
40
+ - The plucked string: the sheet slams into one bright line that flashes and rings in two damped modes, with a few embers hanging around it.
41
+ - The bloom: the line opens from its centre into an 8-petal rose, a cyan pulse runs round the petals, pollen drifts off the tips.
42
+
43
+ ## Composition
44
+ - One form, centred, filling about 45 to 80% of the frame width.
45
+ - Lots of dark around the form. The edges stay quiet.
46
+ - The first frame already shows smoke. Never open on black.
47
+
48
+ ## With media
49
+ - Points can become a photo: place each point by importance sampling (alpha x brightness^1.35) so it is dense where the photo is bright.
50
+ - Each point takes its real pixel colour, saturation lifted about 1.45x. The cyan 5% trace the outline as a rim light, so nothing covers the face.
51
+ - Then resolve the real photo under the points: blur 14 px to 0, opacity 0 to 1, while the points fade to 10%. Calm the camera orbit to zero so they line up.
52
+ - A live clip can take over with a 0.3 s crossfade, placed at the exact same rect, with the same soft feathered edge. Ease the ground colour to the clip's background.
53
+
54
+ ## Ban list
55
+ - a second accent colour, rainbow points
56
+ - blur glow, lens flares, bokeh filters
57
+ - pops, cuts, or points appearing from nothing mid-shot
58
+ - straight-line travel between forms
59
+ - Math.random or anything that changes between renders
@@ -0,0 +1,395 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=1920, height=1080" />
6
+ <script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
7
+ <style>
8
+ * { margin: 0; padding: 0; box-sizing: border-box; }
9
+ html, body { margin: 0; width: 1920px; height: 1080px; overflow: hidden; background: #0a0f1c; }
10
+ #root { position: relative; width: 1920px; height: 1080px; background: #0a0f1c; }
11
+ #cv { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: block; }
12
+ </style>
13
+ </head>
14
+ <body>
15
+ <div id="root" data-composition-id="main" data-start="0" data-duration="14.5" data-width="1920" data-height="1080">
16
+ <canvas id="cv" class="clip" width="1920" height="1080" data-start="0" data-duration="14.5" data-track-index="0"></canvas>
17
+ </div>
18
+ <script>
19
+ // ============================================================
20
+ // Ten thousand points: one canvas, 10,000 particles, deep ink night. 14.5 s, does not loop.
21
+ // Every point position is a pure function of time (smoke paths are precomputed once, seeded).
22
+ // Beats (120 BPM, hits on the 0.5 s grid):
23
+ // 0.0-3.0 smoke curls up out of the ink, then condenses; 3.0 a lit sphere lands, cyan equator
24
+ // 3.0-5.5 sphere turns, then peels open into a rippling wave sheet (lands 5.5, cyan crest row)
25
+ // 5.5-7.7 sheet slams flat into one bright line at 7.0; the line rings like a plucked string
26
+ // 7.7-14.5 line blooms into an 8-petal rose (lands 9.5); it cups, tilts, a cyan pulse runs, slow push-in
27
+ // Change colours: GROUND, POINT and ACCENT below (ACCENT is the one accent, on 5% of the points).
28
+ // No words on screen, by design.
29
+ // ============================================================
30
+ (function () {
31
+ const GROUND = ['#111a2c', '#0a0f1c', '#060912']; // centre, middle, edge of the ink ground
32
+ const POINT = [243, 238, 228]; // warm white points (#F3EEE4)
33
+ const ACCENT = [111, 211, 232]; // soft cyan thread (#6FD3E8)
34
+ const W = 1920, H = 1080, CX = 960, CY = 540, N = 10000, DUR = 14.5;
35
+ const FOC = 2000, CAM = 2000;
36
+ const TAU = Math.PI * 2;
37
+
38
+ // ---------- seeded PRNG + simplex noise ----------
39
+ function mulberry32(a) {
40
+ return function () {
41
+ a |= 0; a = (a + 0x6d2b79f5) | 0;
42
+ let t = Math.imul(a ^ (a >>> 15), 1 | a);
43
+ t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
44
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
45
+ };
46
+ }
47
+ const rng = mulberry32(60412);
48
+ const perm = new Uint8Array(512), pm12 = new Uint8Array(512);
49
+ (function () {
50
+ const p = new Uint8Array(256);
51
+ for (let i = 0; i < 256; i++) p[i] = i;
52
+ for (let i = 255; i > 0; i--) { const j = Math.floor(rng() * (i + 1)); const t = p[i]; p[i] = p[j]; p[j] = t; }
53
+ for (let i = 0; i < 512; i++) { perm[i] = p[i & 255]; pm12[i] = perm[i] % 12; }
54
+ })();
55
+ const G3 = new Float32Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0,1,0,1,-1,0,1,1,0,-1,-1,0,-1,0,1,1,0,-1,1,0,1,-1,0,-1,-1]);
56
+ const F3 = 1 / 3, Gs = 1 / 6;
57
+ function noise3(xin, yin, zin) {
58
+ let n0, n1, n2, n3;
59
+ const s = (xin + yin + zin) * F3;
60
+ const i = Math.floor(xin + s), j = Math.floor(yin + s), k = Math.floor(zin + s);
61
+ const t = (i + j + k) * Gs;
62
+ const x0 = xin - (i - t), y0 = yin - (j - t), z0 = zin - (k - t);
63
+ let i1, j1, k1, i2, j2, k2;
64
+ if (x0 >= y0) {
65
+ if (y0 >= z0) { i1=1;j1=0;k1=0;i2=1;j2=1;k2=0; }
66
+ else if (x0 >= z0) { i1=1;j1=0;k1=0;i2=1;j2=0;k2=1; }
67
+ else { i1=0;j1=0;k1=1;i2=1;j2=0;k2=1; }
68
+ } else {
69
+ if (y0 < z0) { i1=0;j1=0;k1=1;i2=0;j2=1;k2=1; }
70
+ else if (x0 < z0) { i1=0;j1=1;k1=0;i2=0;j2=1;k2=1; }
71
+ else { i1=0;j1=1;k1=0;i2=1;j2=1;k2=0; }
72
+ }
73
+ const x1 = x0 - i1 + Gs, y1 = y0 - j1 + Gs, z1 = z0 - k1 + Gs;
74
+ const x2 = x0 - i2 + 2*Gs, y2 = y0 - j2 + 2*Gs, z2 = z0 - k2 + 2*Gs;
75
+ const x3 = x0 - 1 + 3*Gs, y3 = y0 - 1 + 3*Gs, z3 = z0 - 1 + 3*Gs;
76
+ const ii = i & 255, jj = j & 255, kk = k & 255;
77
+ let g, t0 = 0.6 - x0*x0 - y0*y0 - z0*z0;
78
+ if (t0 < 0) n0 = 0; else { g = pm12[ii + perm[jj + perm[kk]]] * 3; t0 *= t0; n0 = t0*t0*(G3[g]*x0 + G3[g+1]*y0 + G3[g+2]*z0); }
79
+ let t1 = 0.6 - x1*x1 - y1*y1 - z1*z1;
80
+ if (t1 < 0) n1 = 0; else { g = pm12[ii+i1 + perm[jj+j1 + perm[kk+k1]]] * 3; t1 *= t1; n1 = t1*t1*(G3[g]*x1 + G3[g+1]*y1 + G3[g+2]*z1); }
81
+ let t2 = 0.6 - x2*x2 - y2*y2 - z2*z2;
82
+ if (t2 < 0) n2 = 0; else { g = pm12[ii+i2 + perm[jj+j2 + perm[kk+k2]]] * 3; t2 *= t2; n2 = t2*t2*(G3[g]*x2 + G3[g+1]*y2 + G3[g+2]*z2); }
83
+ let t3 = 0.6 - x3*x3 - y3*y3 - z3*z3;
84
+ if (t3 < 0) n3 = 0; else { g = pm12[ii+1 + perm[jj+1 + perm[kk+1]]] * 3; t3 *= t3; n3 = t3*t3*(G3[g]*x3 + G3[g+1]*y3 + G3[g+2]*z3); }
85
+ return 32 * (n0 + n1 + n2 + n3);
86
+ }
87
+
88
+ // ---------- particle parameters (Fibonacci lattice) ----------
89
+ const GA = 0.6180339887498949;
90
+ const U = new Float32Array(N), V = new Float32Array(N), R1 = new Float32Array(N), R2 = new Float32Array(N);
91
+ const CYAN = new Uint8Array(N);
92
+ for (let i = 0; i < N; i++) {
93
+ V[i] = (i + 0.5) / N;
94
+ U[i] = (i * GA + 0.137) % 1;
95
+ R1[i] = rng(); R2[i] = rng();
96
+ CYAN[i] = (V[i] > 0.475 && V[i] < 0.525) ? 1 : 0;
97
+ }
98
+
99
+ // ---------- smoke: seeded curl-noise advection, precomputed lookup ----------
100
+ const S_T0 = -0.1, S_T1 = 3.7, S_HZ = 30;
101
+ const S_K = Math.ceil((S_T1 - S_T0) * S_HZ) + 1;
102
+ const SMK = new Float32Array(N * S_K * 3);
103
+ (function () {
104
+ const f1 = 0.0013, f2 = 0.0031, e = 0.02, VMAX = 260, h = 1 / S_HZ;
105
+ const PRE = 3.0;
106
+ const steps = Math.round((S_T1 - S_T0 + PRE) * S_HZ);
107
+ const psi = (X, Y, T) => noise3(X * f1, Y * f1, T * 0.12) + 0.45 * noise3(X * f2 + 31.7, Y * f2 - 12.1, T * 0.21 + 7.3);
108
+ for (let i = 0; i < N; i++) {
109
+ // seed: a wide soft ellipse of points filling the frame
110
+ const a = rng() * TAU, rr = Math.pow(rng(), 0.75);
111
+ let x = Math.cos(a) * rr * 1020, y = Math.sin(a) * rr * 600, z = (rng() - 0.5) * 700;
112
+ let T = S_T0 - PRE;
113
+ for (let s = 0; s <= steps; s++) {
114
+ if (T >= S_T0 - 1e-6) {
115
+ const k = Math.round((T - S_T0) * S_HZ);
116
+ if (k < S_K) { const o = (i * S_K + k) * 3; SMK[o] = x; SMK[o + 1] = y; SMK[o + 2] = z; }
117
+ }
118
+ const p0 = psi(x, y, T);
119
+ const px = psi(x + e / f1, y, T), py = psi(x, y + e / f1, T);
120
+ const dX = (px - p0) / e, dY = (py - p0) / e;
121
+ let vx = VMAX * dY * 0.55 - 0.16 * x - 18;
122
+ let vy = -VMAX * dX * 0.55 - 0.16 * y - 10;
123
+ let vz = 90 * noise3(x * 0.002 + 50, y * 0.002, T * 0.2) - 0.25 * z;
124
+ x += vx * h; y += vy * h; z += vz * h;
125
+ T += h;
126
+ }
127
+ }
128
+ })();
129
+
130
+ // ---------- helpers ----------
131
+ const clamp = (x, a, b) => (x < a ? a : x > b ? b : x);
132
+ const io3 = (x) => (x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2);
133
+ const out4 = (x) => 1 - Math.pow(1 - x, 4);
134
+ const in3 = (x) => x * x * x;
135
+ let PX = 0, PY = 0, PZ = 0;
136
+
137
+ function smoke(i, t) {
138
+ const ft = clamp((t - S_T0) * S_HZ, 0, S_K - 1.001);
139
+ const k = Math.floor(ft), f = ft - k;
140
+ const o = (i * S_K + k) * 3;
141
+ PX = SMK[o] + (SMK[o + 3] - SMK[o]) * f;
142
+ PY = SMK[o + 1] + (SMK[o + 4] - SMK[o + 1]) * f;
143
+ PZ = SMK[o + 2] + (SMK[o + 5] - SMK[o + 2]) * f;
144
+ LT = 1;
145
+ }
146
+
147
+ // sphere: spins and holds a tilt
148
+ let LT = 1;
149
+ const LX = -0.48, LY = -0.62, LZ = -0.62;
150
+ function sphere(i, t) {
151
+ const st = t - 3.0;
152
+ const R = 440 * (st > 0 ? 1 + 0.035 * Math.exp(-3.2 * st) * Math.sin(st * 9) : 1);
153
+ const th = TAU * U[i] + 0.62 * t;
154
+ const cphi = 1 - 2 * V[i], sphi = Math.sqrt(1 - cphi * cphi);
155
+ const x = R * sphi * Math.cos(th), y = -R * cphi, z = R * sphi * Math.sin(th);
156
+ const a = 0.36 + 0.06 * Math.sin(t * 0.8), ca = Math.cos(a), sa = Math.sin(a);
157
+ PX = x; PY = y * ca - z * sa; PZ = y * sa + z * ca;
158
+ const nx = PX / R, ny = PY / R, nz = PZ / R;
159
+ const lam = Math.max(0, nx * LX + ny * LY + nz * LZ);
160
+ const rim = Math.pow(1 - Math.abs(nz), 3);
161
+ LT = 0.32 + 1.15 * lam + 0.55 * rim;
162
+ }
163
+
164
+ // wave: tilted sheet with travelling ripples
165
+ function wave(i, t) {
166
+ const X = (U[i] - 0.5) * 1560, Z = (V[i] - 0.5) * 940;
167
+ const a1 = 0.0058 * X + 0.0019 * Z - 2.6 * t, a2 = 0.0085 * Z - 0.0021 * X + 1.9 * t;
168
+ const Y = 92 * Math.sin(a1) + 42 * Math.sin(a2);
169
+ const dYdX = 0.534 * Math.cos(a1) - 0.088 * Math.cos(a2);
170
+ const dYdZ = 0.175 * Math.cos(a1) + 0.357 * Math.cos(a2);
171
+ LT = clamp(0.8 + 1.7 * dYdX + 1.0 * dYdZ, 0.22, 2.4) * (0.8 + 0.35 * (-Y / 116)) * (1.45 - 0.5 * V[i]);
172
+ const yaw = -0.12 + 0.05 * Math.sin(t * 0.7), cy = Math.cos(yaw), sy = Math.sin(yaw);
173
+ const x1 = X * cy - Z * sy, z1 = X * sy + Z * cy;
174
+ const a = 0.56, ca = Math.cos(a), sa = Math.sin(a);
175
+ PX = x1 * 1.08; PY = Y * ca - z1 * sa + 40; PZ = Y * sa + z1 * ca;
176
+ }
177
+
178
+ // line: one bright horizontal stroke, thickness rings after landing
179
+ function line(i, t) {
180
+ const land = 7.0;
181
+ const dt = t - land;
182
+ const xn = U[i];
183
+ const ring = dt > 0 ? 1 + 4.5 * Math.exp(-5 * dt) * Math.sin(dt * 22) : 1;
184
+ const hum = 1 + 0.25 * Math.sin(t * 9 + xn * 18);
185
+ // plucked string: two standing modes, damped
186
+ let pl = 0;
187
+ if (dt > 0) {
188
+ const env = Math.exp(-1.6 * dt);
189
+ pl = env * (46 * Math.sin(Math.PI * xn) * Math.cos(dt * 15) + 18 * Math.sin(3 * Math.PI * xn) * Math.cos(dt * 31 + 0.6));
190
+ }
191
+ PX = (xn - 0.5) * 1740;
192
+ PY = (V[i] - 0.5) * 7 * ring * hum + pl;
193
+ PZ = 0;
194
+ LT = 1 + (dt > 0 ? 1.1 * Math.exp(-3.5 * dt) : 0);
195
+ // embers: a few points never quite settle and hang in the air around the string
196
+ if (R2[i] < 0.05 && !CYAN[i]) {
197
+ const k = R2[i] / 0.05;
198
+ const sp = (R1[i] - 0.5) * 2;
199
+ PY += sp * Math.abs(sp) * 230 + 16 * noise3(i * 0.11, t * 0.35, 21.0);
200
+ PX += 40 * noise3(i * 0.11 + 9.0, t * 0.3, 21.0);
201
+ PZ += (k - 0.5) * 500;
202
+ LT *= 0.55;
203
+ }
204
+ }
205
+
206
+ // rose: nested 8-petal curves, cupped toward camera, tilting and turning
207
+ function rose(i, t) {
208
+ const R = 455;
209
+ const a = 0.26 + 0.74 * V[i];
210
+ const th = TAU * U[i];
211
+ const rt = t - 9.5;
212
+ const settle = rt > 0 ? 1 + 0.03 * Math.exp(-3 * rt) * Math.sin(rt * 8) : 1;
213
+ const r = R * a * Math.cos(4 * th) * (1 + 0.018 * Math.sin(t * 3.1 - a * 4)) * settle;
214
+ const tw = th + 0.42 * (1 - a) + 0.2 * (t - 7.7);
215
+ const x = r * Math.cos(tw), y = r * Math.sin(tw);
216
+ const q = Math.abs(r) / R;
217
+ let z = -210 * q * q + 40 * (1 - a);
218
+ let x2 = x, y2 = y;
219
+ // pollen: a few outer points lift off the petal tips and drift
220
+ if (rt > 0 && R2[i] < 0.09 && a > 0.72) {
221
+ const d = Math.pow(rt, 1.25) * 46;
222
+ x2 += d * (Math.cos(tw) * 0.8 + noise3(i * 0.37, rt * 0.4, 3.3));
223
+ y2 += d * (Math.sin(tw) * 0.8 + noise3(i * 0.37 + 5.1, rt * 0.4, 3.3)) - d * 0.4;
224
+ z -= d * 0.6;
225
+ }
226
+ const tilt = 0.06 + 0.66 * io3(clamp((t - 9.0) / 3.5, 0, 1));
227
+ const ca = Math.cos(tilt), sa = Math.sin(tilt);
228
+ PX = x2; PY = y2 * ca - z * sa - 10; PZ = y2 * sa + z * ca;
229
+ LT = 0.55 + 0.75 * Math.pow(0.5 + 0.5 * Math.cos(tw - 2.4), 2) + 0.25 * q;
230
+ }
231
+
232
+ // ---------- per-particle schedule ----------
233
+ const S1 = new Float32Array(N), S2 = new Float32Array(N), S3 = new Float32Array(N), S4 = new Float32Array(N), FADE = new Float32Array(N);
234
+ const D1 = 0.9, D2 = 0.9, D3 = 0.7, D4 = 1.2;
235
+ (function () {
236
+ let maxd = 0; const dd = new Float32Array(N);
237
+ for (let i = 0; i < N; i++) { smoke(i, 1.6); dd[i] = Math.hypot(PX / 1.6, PY); if (dd[i] > maxd) maxd = dd[i]; }
238
+ for (let i = 0; i < N; i++) {
239
+ S1[i] = 1.6 + 0.5 * clamp(dd[i] / maxd, 0, 1);
240
+ S2[i] = 4.1 + 0.5 * U[i];
241
+ S3[i] = 6.1 + 0.2 * Math.abs(2 * V[i] - 1);
242
+ S4[i] = 7.7 + 0.6 * Math.abs(2 * U[i] - 1);
243
+ FADE[i] = R1[i] * 0.75 - 0.5;
244
+ }
245
+ })();
246
+
247
+ // blend helper: A already in (ax,ay,az) -> B in PX.. ; adds coherent swirl
248
+ function mix(ax, ay, az, la, e, amp, seed) {
249
+ const bx = PX, by = PY, bz = PZ;
250
+ LT = la + (LT - la) * e;
251
+ let x = ax + (bx - ax) * e, y = ay + (by - ay) * e, z = az + (bz - az) * e;
252
+ const s = Math.sin(Math.PI * e) * amp;
253
+ if (s > 0.5) {
254
+ const fx = x * 0.0022, fy = y * 0.0022;
255
+ x += s * noise3(fx, fy, seed);
256
+ y += s * noise3(fx + 17.3, fy, seed);
257
+ z += s * noise3(fx, fy + 9.1, seed);
258
+ }
259
+ PX = x; PY = y; PZ = z;
260
+ }
261
+
262
+ // returns state weight for brightness: smoke dimmer, line hotter
263
+ let BR = 1;
264
+ function pos(i, t) {
265
+ if (t < S1[i]) { smoke(i, t); BR = 1.55; return; }
266
+ if (t < S1[i] + D1) {
267
+ const e = io3((t - S1[i]) / D1);
268
+ smoke(i, t); const ax = PX, ay = PY, az = PZ, la = LT;
269
+ sphere(i, t); mix(ax, ay, az, la, e, 150, 1.3); BR = 1.55 - 0.55 * e; return;
270
+ }
271
+ if (t < S2[i]) { sphere(i, t); BR = 1; return; }
272
+ if (t < S2[i] + D2) {
273
+ const e = io3((t - S2[i]) / D2);
274
+ sphere(i, t); const ax = PX, ay = PY, az = PZ, la = LT;
275
+ wave(i, t); mix(ax, ay, az, la, e, 70, 4.7); BR = 1; return;
276
+ }
277
+ if (t < S3[i]) { wave(i, t); BR = 1; return; }
278
+ if (t < S3[i] + D3) {
279
+ const e = in3((t - S3[i]) / D3);
280
+ wave(i, t); const ax = PX, ay = PY, az = PZ, la = LT;
281
+ line(i, t); mix(ax, ay, az, la, e, 18, 8.2); BR = 1 + 0.25 * e; return;
282
+ }
283
+ if (t < S4[i]) { line(i, t); BR = 1.25; return; }
284
+ if (t < S4[i] + D4) {
285
+ const e = out4((t - S4[i]) / D4);
286
+ line(i, t); const ax = PX, ay = PY, az = PZ, la = LT;
287
+ rose(i, t); mix(ax, ay, az, la, e, 110, 12.9); BR = 1.55 - 0.55 * e; return;
288
+ }
289
+ rose(i, t); BR = 1;
290
+ }
291
+
292
+ // ---------- sprites ----------
293
+ function sprite(r, g, b) {
294
+ const c = document.createElement('canvas'); c.width = c.height = 32;
295
+ const x = c.getContext('2d');
296
+ const gr = x.createRadialGradient(16, 16, 0, 16, 16, 16);
297
+ gr.addColorStop(0, `rgba(${r},${g},${b},1)`);
298
+ gr.addColorStop(0.35, `rgba(${r},${g},${b},0.85)`);
299
+ gr.addColorStop(0.7, `rgba(${r},${g},${b},0.18)`);
300
+ gr.addColorStop(1, `rgba(${r},${g},${b},0)`);
301
+ x.fillStyle = gr; x.fillRect(0, 0, 32, 32);
302
+ return c;
303
+ }
304
+ const SPW = sprite(...POINT), SPC = sprite(...ACCENT);
305
+
306
+ // ---------- draw ----------
307
+ const cv = document.getElementById('cv');
308
+ const out = cv.getContext('2d');
309
+ const PL = document.createElement('canvas'); PL.width = W; PL.height = H;
310
+ const ctx = PL.getContext('2d');
311
+ const bg = ctx.createRadialGradient(CX, CY + 40, 0, CX, CY + 40, 1180);
312
+ bg.addColorStop(0, GROUND[0]); bg.addColorStop(0.55, GROUND[1]); bg.addColorStop(1, GROUND[2]);
313
+ const SUB = 3, HSUB = 1 / 80, WSUB = [1, 0.5, 0.28, 0.14];
314
+ // bloom chain: halve repeatedly (true box averaging), add back soft
315
+ const mk = (w, h) => { const c = document.createElement('canvas'); c.width = w; c.height = h; return c; };
316
+ const B1 = mk(960, 540), B2 = mk(480, 270), B3 = mk(240, 135), B4 = mk(120, 68);
317
+ const b1 = B1.getContext('2d'), b2 = B2.getContext('2d'), b3 = B3.getContext('2d'), b4 = B4.getContext('2d');
318
+ // seeded film grain tiles
319
+ const GRAIN = [];
320
+ (function () {
321
+ const gr = mulberry32(911);
322
+ for (let k = 0; k < 4; k++) {
323
+ const c = mk(256, 256), x = c.getContext('2d'), im = x.createImageData(256, 256);
324
+ for (let j = 0; j < im.data.length; j += 4) { const v = Math.floor(gr() * 255); im.data[j] = im.data[j + 1] = im.data[j + 2] = v; im.data[j + 3] = 255; }
325
+ x.putImageData(im, 0, 0); GRAIN.push(out.createPattern(c, 'repeat'));
326
+ }
327
+ })();
328
+
329
+ function draw(t) {
330
+ ctx.globalCompositeOperation = 'source-over';
331
+ ctx.globalAlpha = 1;
332
+ ctx.clearRect(0, 0, W, H);
333
+ ctx.globalCompositeOperation = 'lighter';
334
+ const zoom = 1 + 0.045 * (t / DUR) + 0.07 * io3(clamp((t - 9.6) / 3.4, 0, 1));
335
+ for (let k = SUB; k >= 0; k--) {
336
+ const tt = t - k * HSUB;
337
+ const wk = WSUB[k];
338
+ const yaw = 0.16 * Math.sin(tt * 0.33 + 0.4), cyw = Math.cos(yaw), syw = Math.sin(yaw);
339
+ const pitch = 0.05 * Math.sin(tt * 0.27), cpt = Math.cos(pitch), spt = Math.sin(pitch);
340
+ const pulseOn = tt > 9.4;
341
+ for (let i = 0; i < N; i++) {
342
+ let fade = 1;
343
+ if (tt < 1.6) { fade = clamp((tt - FADE[i]) / 0.55, 0, 1); if (fade <= 0) continue; }
344
+ pos(i, tt);
345
+ // camera: slow orbit gives parallax between near and far points
346
+ const x1 = PX * cyw + PZ * syw, z1 = -PX * syw + PZ * cyw;
347
+ const y1 = PY * cpt - z1 * spt, z2 = PY * spt + z1 * cpt;
348
+ const den = CAM + z2;
349
+ if (den < 200) continue;
350
+ const s = FOC / den * zoom;
351
+ const sx = CX + x1 * s, sy = CY + y1 * s;
352
+ if (sx < -20 || sx > W + 20 || sy < -20 || sy > H + 20) continue;
353
+ const dn = clamp((s - 0.72) / 0.6, 0, 1);
354
+ const cy = CYAN[i];
355
+ let al = (0.1 + 0.62 * dn * dn) * BR * LT * fade * wk;
356
+ if (cy) {
357
+ al *= 1.6;
358
+ if (pulseOn) al *= 1 + 2.2 * Math.pow(0.5 + 0.5 * Math.cos(TAU * U[i] - 3.4 * (tt - 9.4)), 10);
359
+ }
360
+ ctx.globalAlpha = al > 1 ? 1 : al;
361
+ const sz = (cy ? 4.8 : 3.8) * s * (0.85 + 0.3 * R1[i]);
362
+ ctx.drawImage(cy ? SPC : SPW, sx - sz / 2, sy - sz / 2, sz, sz);
363
+ }
364
+ }
365
+ // compose: ink ground, points, soft light from density only, grain
366
+ ctx.globalCompositeOperation = 'source-over'; ctx.globalAlpha = 1;
367
+ b1.globalCompositeOperation = 'copy'; b1.drawImage(PL, 0, 0, 960, 540);
368
+ b2.globalCompositeOperation = 'copy'; b2.drawImage(B1, 0, 0, 480, 270);
369
+ b3.globalCompositeOperation = 'copy'; b3.drawImage(B2, 0, 0, 240, 135);
370
+ b4.globalCompositeOperation = 'copy'; b4.drawImage(B3, 0, 0, 120, 68);
371
+ out.globalCompositeOperation = 'source-over'; out.globalAlpha = 1;
372
+ out.fillStyle = bg; out.fillRect(0, 0, W, H);
373
+ out.globalCompositeOperation = 'lighter';
374
+ out.drawImage(PL, 0, 0);
375
+ out.imageSmoothingQuality = 'high';
376
+ out.globalAlpha = 0.5; out.drawImage(B3, 0, 0, W, H);
377
+ out.globalAlpha = 0.65; out.drawImage(B4, 0, 0, W, H);
378
+ out.globalCompositeOperation = 'overlay';
379
+ out.globalAlpha = 0.07;
380
+ out.fillStyle = GRAIN[Math.floor(t * 30 + 0.001) % 4];
381
+ out.fillRect(0, 0, W, H);
382
+ out.globalCompositeOperation = 'source-over';
383
+ out.globalAlpha = 1;
384
+ }
385
+
386
+ const p = { t: 0 };
387
+ const tl = gsap.timeline({ paused: true });
388
+ tl.to(p, { t: DUR, duration: DUR, ease: 'none', onUpdate: () => draw(p.t) }, 0);
389
+ window.__timelines = window.__timelines || {};
390
+ window.__timelines['main'] = tl;
391
+ draw(0);
392
+ })();
393
+ </script>
394
+ </body>
395
+ </html>
@@ -0,0 +1,52 @@
1
+ # Poster Pop
2
+
3
+ id: poster-pop
4
+ Best for: hooks, Shorts, big claims, countdowns, "3 things" lists.
5
+ Mood: a loud gig poster. Huge condensed type, flat colour, hard cuts.
6
+ Reference piece: styles/poster-pop/index.html (12 s, loops)
7
+ Gallery video: gallery/videos/poster-pop.mp4
8
+
9
+ ## Palette (hex)
10
+ - ground: #FFD400 (yellow)
11
+ - ink: #111111
12
+ - paper: #FFFFFF (for cards and knockout text)
13
+ - accent: #111111 on yellow is the accent. No other colour.
14
+
15
+ ## Type
16
+ - Display: League Gothic, all caps, tracking 0.01em, line height 0.85
17
+ - Hero word: 50% to 90% of the frame height
18
+ - Support: Archivo Black, 40 px or more
19
+ - Font links (paste into <head>; all fonts are free):
20
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=League+Gothic&family=Archivo+Black&display=swap">
21
+
22
+ ## Easing (numbers)
23
+ - slam: power4.out, 0.2 s
24
+ - scale punch: 1.0 to 1.06 to 1.0 on the beat. Up in 0.05 s, back over 0.4 s (sine.inOut). A faster return reads as a flash.
25
+ - leave: power3.in, 0.2 s
26
+ - cut every 0.5 to 1.0 s
27
+
28
+ ## Motion rules
29
+ - One word or number per beat. Cut on the beat.
30
+ - Words slam in from off frame and stop dead.
31
+ - Use the whole frame. Crop letters off the edge on purpose.
32
+
33
+ ## Signature moves
34
+ - The word too big for the poster: hero words and numerals at 80% to 150% of the frame height, cropped off two edges.
35
+ - Letter slam: letters arrive one by one, 0.033 s apart, and stop dead. The zip version sends odd letters from the top and even letters from the bottom.
36
+ - Field flip: a hard cut swaps yellow ground and ink, so the type turns yellow on ink.
37
+ - Paper card: a white card slams across the giant numeral, and its Archivo Black word rises up inside the card edge 2 frames later.
38
+ - Land jolt: the whole poster drops 18 px when a word hits and settles in 0.15 s.
39
+
40
+ ## Grid
41
+ No margins for the hero word. 64 px margins for support text.
42
+
43
+ ## With media
44
+ - Photos and clips sit inside a paper card or a hard rectangle mask. No rounded corners.
45
+ - Grade them to high contrast black and white so the yellow stays the only colour.
46
+ - Cut media on the beat like a word. Never fade it in.
47
+
48
+ ## Ban list
49
+ - gradients, shadows, glow
50
+ - small text
51
+ - more than 3 words on screen
52
+ - soft slow fades