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.
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.
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.
spc476 | 4 hours ago
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.
wezm | 3 hours ago
It is mentioned in the shapes chapter:
telemachus | 9 hours ago
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.)
arwn | 44 minutes ago
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.