More pythonic circle?
John Machin
sjmachin at lexicon.net
Sat Apr 8 23:37:25 EDT 2006
More information about the Python-list mailing list
Sat Apr 8 23:37:25 EDT 2006
- Previous message (by thread): Curses and Character Handling
- Next message (by thread): More pythonic circle?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
OTTOMH, in a rush to go out: never mind Pythonic, following apply to any language: (1) accuracy: (a) sue me if I'm wrong, but I think you need range(dx+1) so that the dx pixel is filled in (b) a few more digits after 0.71 might be useful (2) efficiency: seems that range(dy, dx+1) would save some wear & tear on the circuitry :-) (3) legibility: there's no prize for the script with the absolutely minimum number of space characters :-) I think I've got an article on better Bresenham somewhere in the archives; will dig it out later. Cheers, John
- Previous message (by thread): Curses and Character Handling
- Next message (by thread): More pythonic circle?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list