Repository navigation
README: visuals from the running program, record mode - #2
Merged
Merged
Conversation
- Record mode (SORTVIS_RECORD and other SORTVIS_* variables): draws one run into an offscreen sf::RenderTexture and saves PNG frames. No window opens. Without SORTVIS_RECORD the program works as before. - ArrayDrawer draws onto any sf::RenderTarget. - docs/hero.gif (one clip per layout), docs/layouts.png, and a 5-frame strip per algorithm in docs/algorithms/. - README: how it works, run, record, algorithm list, status, link to the portfolio. Removes the screenshot TODO. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012G3kWcaMBo7MSwGBgwXaju
…zips Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012G3kWcaMBo7MSwGBgwXaju
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012G3kWcaMBo7MSwGBgwXaju
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds real visuals to the README. All images are frames saved by the program itself.
Example strips (shuffled, about 25 / 50 / 75 % of the steps, sorted):
Changes
SORTVIS_RECORD=<dir>(plusSORTVIS_LAYOUT,SORTVIS_SORT,SORTVIS_FRAMES,SORTVIS_THEME,SORTVIS_SEED) skips the menu, draws one run (sorted, shuffle, sort, sorted) into an offscreensf::RenderTextureand saves PNG frames. No window opens. A dry run counts the algorithm's steps first, so each algorithm gets about the same number of frames.SORTVIS_RECORD, the window is created at the start ofmain()(before: as a global) and everything else runs as before.ArrayDrawernow draws onto anysf::RenderTarget;Menugotset_theme()(used only by record mode).docs/hero.gif2.39 MB (480 px, 15 fps, 64 colours),docs/layouts.png60 KB, 16 strips indocs/algorithms/(13-26 KB each, 311 KB total).Checks
🤖 Generated with Claude Code