simple toy to showcase the persistence of vision phenomenon discussed in this video.
try starting the below demo. when it's running, you will seemingly notice lines flickering on the screen, but they disappear as soon as you pause or take a screenshot.
demo.mp4
you can build this project locally on Windows by default and on Linux with the -platform
flag (sorry macOS folks).
requirements: gcc
and ar
available in the PATH.
steps:
- clone the repo
gcc ./nob.c -o nob
./nob
or./nob -platform windows
for Windows or./nob -platform linux
for Linux./build/pov-brain-is-weird
keybindings:
- arrows (←↓↑→) to choose a simulation
- Enter to select the simulation
- p to pause/unpause
- ESC to quit the simulation and go back to menu
nob
-- amazing, minimalist build system by Tsoding, license included in nob.h
raylib
-- amazing, minimalist game-making library, license vendored in the repository
window icon -- taken from Tsoding's stream/Discord server with his persmission: click!
inspiration -- this video and its unironically awesome comment section