The circle example is pretty cool, and could benefit from some text addition and small refactoring! What I changed
The equation of the circle was changed to
(x - a).pow(2) / 4 + (y - b).pow(2) The addition of / 4 takes into account that rows and columns are not evenly spaced in terminals. The distance between rows is much greater than the distance between each column for the terminal cells, this gives it a more circular shape.
Decreasing the Radius no longer works beyond 1 by use of saturating_sub
Text at the bottom of the screen lists controls, which are rendered through a simple write_out function
The circle example is pretty cool, and could benefit from some text addition and small refactoring! What I changed
(x - a).pow(2) / 4 + (y - b).pow(2)
The addition of/ 4
takes into account that rows and columns are not evenly spaced in terminals. The distance between rows is much greater than the distance between each column for the terminal cells, this gives it a more circular shape.saturating_sub
Picture of new look