Build your own Paint
32 points by syncsynchalt
32 points by syncsynchalt
Perhaps I'm old, perhaps people feel computers are infinitely fast these days, or people just don't come across the information, but I was really surprised that the tutorial didn't bother using Bresenham's Line or Circle algorithms. I first learned about those when I was 15 and implemented them in assembly on my home computer at the time.
It is mentioned in the shapes chapter:
This method is simple and more than enough for us. There's a more famous algorithm for drawing lines, Bresenham's, which only uses additions. The Going further page talks about it.
Maybe inspired by Build Your Own Editor? (Which, if you like that sort of thing but want Rust, someone adapted to use Rust: Build Your Own Text Editor in Rust.)
It says you can build your own paint with one dependency, but that in turn requires many more dependencies such as serde. That being said I’m being a bit purist and I love the idea either way.