Donut math: how donut.c works

  • Reminds me of this classic IOCCC entry implementing a flight simulator, where portions of the source code are formatted to resemble a plane:

    https://www.ioccc.org/1998/banks.orig.c

    https://www.ioccc.org/years.html#1998_banks

  • Interesting.

    Tangentially reminds me of my own animated GIF app that I made a while ago.

    https://www.gifcii.fun

  • That’s the kind of thing that had me learn coding many years ago ( watching demoscene productions).

  • What platform does this compile on? Didn't work for me on a recent model M1 MacBook Pro.

  • (2011)

  • reminds me of stuff i based in basic when i was a kid

    made me laugh to see "no raytracing", then immediate use of the perspective projection which is intersecting points and a plane along a ray lol...