tarantino07/cube.c — reverse-engineered prompt

Reverse engineered prompt

Build me a tiny C project that recreates the rotating cube demo from the linked video. I want one simple program that draws a 3D cube and animates it smoothly, with basic perspective so it actually feels three dimensional. Keep it lightweight and kind of old school, more like a clever graphics demo than a full app.

It should be easy to compile and run from the command line, and if it fits the project, include both a Makefile and CMake setup. Please keep the code clean and readable since the appeal here is that it looks impressive without being huge or complicated. If the video shows details like wireframe edges, shading, or terminal style output, match that vibe as closely as you can.

I do not have a README for this repo, so use the repo name and the video as the source of truth. Feel free to look up the video or current docs online if you need to fill in gaps.

Want more depth? Deep Reverse