[Tutor] ASCII-Art circles, was Re: Why are expressions not allowed as parameters in function definition statements?

Peter Otten __peter__ at web.de
Mon Jun 20 04:36:21 EDT 2016


boB Stepp wrote:

> I have (Finally!) gotten a bit of time to look at Peter's answer to my
> Model-View-Controller question from May 29th, particularly his
> CircleImageView class to which he added a "#FIXME" comment.

I'm now really sorry that I wrote that comment. It should have been 
something like

# I know that the following code is inefficient and produces 
# underwhelming results. As its only purpose is to illustrate
# the view part of MVC I won't spend one more minute on it.

Don't let that stop you if the problem of drawing graphics primitives 
interests you. You can reuse the coordinates of one point on the circle 
eight times, and for inner points no calculation should be necessary.
I don't know how to best deal with an aspect ratio != 1; as the extra minute 
is more than over you have to google it yourself ;)



More information about the Tutor mailing list