Elektrine lite

← Feed

@dabeaz@mastodon.social

Post #2098609

2026-03-27 18:05 UTC

About 5 years earlier, I had done a senior thesis project where I explored the Bresenham ellipse drawing algorithm (and also circle-drawing algorithm). I even presented this in my first ever conference talk as a student paper at a math conference in Topeka, KS. So, I had that code laying around. I figured I could adapt it into something where I rendered flat 2D circles into a 3D z-buffered 8-bit pixel array. This could be easily coded in C using just basic arrays. 18/n?

Replies (1)

  • @dabeaz@mastodon.social 2026-03-27 18:10

    So, I add that to our physics code. The problem is how do I turn that into an image? I don't know anything about image formats. However, there it was, xv. We had the source code for xv. xv could write GIF images. So, I simply copied the GIF encoder out of xv, tweaked it a bit, and dropped it in our physics code. A bit of code reuse. 19/n?

    Open ##2098610