Sorting algorithms race
[Task] Create a 28-second motion-graphics video, 1920x1080 at 30 fps, in which four sorting algorithms race side by side on the same 60-bar array, with live…
More
1 test · 1 finished runs (1 agent, 0 raw one-shot) · 1 video
The prompt
[Task] Create a 28-second motion-graphics video, 1920x1080 at 30 fps, in which four sorting algorithms race side by side on the same 60-bar array, with live comparison counters and a finish podium. [Scenes] 1. 0-3 s: Sixty bars drop from above into one row with a bouncy spring. The row duplicates into four stacked lanes as the camera pulls back. Lane labels slide in: Bubble Sort, Insertion Sort, Merge Sort, Quicksort. 2. 3-19 s: The race. All lanes advance in lockstep at exactly 4 comparisons per frame. Compared bars flash, and swapped bars hop past each other on short arcs. Each lane shows a live comparison counter and a swap counter. When a lane finishes, a green sweep runs left to right, its finish time locks (e.g. '2.3 s'), and a rank number stamps in. 3. 19-23 s: The lanes compress and slide left. The final comparison totals become a horizontal bar chart, growing with stagger. 4. 23-28 s: The camera swings in 3D to a podium built from bars. The top three lane icons rise onto it, and confetti made of tiny bars falls. The title reads 'Same array. Different strategies.' [Style] Palette: #0E0E12 background, #2A2D3A idle bars, #4CC9F0 compare, #F72585 swap, #B8F35A sorted, #F5F3EE text. Condensed technical sans for labels and tabular figures for counters. Subtle grid floor with soft reflections under the bars. Snappy motion: ease-out-cubic hops, spring settle on finish. [Data] Array (bar heights 1-60, left to right): 37,13,50,26,2,39,15,52,28,4,41,17,54,30,6,43,19,56,32,8,45,21,58,34,10,47,23,60,36,12,49,25,1,38,14,51,27,3,40,16,53,29,5,42,18,55,31,7,44,20,57,33,9,46,22,59,35,11,48,24. Quicksort uses a Lomuto partition with the last element as pivot. Merge sort is top-down. Counters must reflect the true operation counts of these exact implementations. [Wow] - Slow continuous camera drift that tilts across the lanes, giving parallax between bars and floor reflection. - Quicksort pivots glow with a vertical light beam. Merge sort shows sub-array brackets splitting and joining. - The bubble lane, finishing last, gets a tense close-up push-in for its final passes. - Counter digits pulse on a 120 BPM grid during the race. [Rules] - Every frame is drawn in code (SVG, canvas, CSS or WebGL). No image files, no image generation, no external assets beyond fonts. - Deterministic: no unseeded randomness at render time. - Text must be crisp, spelled correctly and readable at 1080p. - No hard cuts between scenes: every change is a designed transition. - The algorithms must actually run on the given array; no faked animation. [Harness notes] Render the final video to out.mp4 (1920x1080, 28 s). Write everything into the working directory. Remotion 4.0.527 is already installed for you in the current directory: node_modules is pre-installed and read-only, so do not run npm install or create-video, and a remotion.config.ts here already points rendering at the local Chromium. Render the final video yourself to out.mp4 in the current directory (for example npx remotion render <entry file> <composition id> out.mp4). You may render stills or frames and inspect your own output (headless chromium is available at /usr/bin/chromium) and iterate on your own before finishing.
Same prompt, all models: step through 1 runsIn the gallery: one player, arrow keys or swipe.
Rendered videoGPT-6 Sol
Codex CLI 0.156.1
skills on · Codex CLI 0.156.1 + Remotion/HyperFrames skills
Rendered video from the run