mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
7 lines
453 B
Plaintext
7 lines
453 B
Plaintext
QuickDraw oval/rect drawing:
|
|
|
|
https://www.folklore.org/StoryView.py?story=Round_Rects_Are_Everywhere.txt
|
|
|
|
Bill's technique used the fact the sum of a sequence of odd numbers is always the next perfect square (For example, 1 + 3 = 4, 1 + 3 + 5 = 9, 1 + 3 + 5 + 7 = 16, etc).
|
|
So he could figure out when to bump the dependent coordinate value by iterating in a loop until a threshold was exceeded. This allowed QuickDraw to draw ovals very quickly.
|