The Beauty of Bresenham's Algorithm (2016)
members.chello.at
members.chello.at
It had something to do with partial rows that looped back on themselves to create wedges that increased the row count on one side of the garment versus the other. There was a need to create partial rows of different lengths to make sure the garment fanned correctly, but I don't know how she figured that part out. She was specifically attempting to create a garment where the rows ran 90 degrees to down the length of the garment, instead of across, to give a different texture.
It makes it easy to do linear interpolation (lerp) between two RGB colors (or in another color space if you want better color consistency during transition). The transition between each component gets be spaced out over a constant duration regardless of how little integer difference there actually is.
I used this approach to add a color fade transition effect for a Game Boy color puzzle game (made using GBDK). GIF of the effect here: https://twitter.com/0xbbbbbr/status/1350982144450027525
https://news.ycombinator.com/item?id=4352943 (2012) 46 comments
https://news.ycombinator.com/item?id=15074080 (2017) 41 comments
[1] [PDF] https://web.archive.org/web/20080528040104/http://www.resear...
It’s just so elegant. Not only that, it has a bunch of non-graphics applications (eg projection onto any discrete codomain).