Procedural graphics for learning Python [closed]
Can anyone recommend a good compact Python graphics library (with tutorials) which is suitable for motivating stronger students in an introductory programming course? I mean library for creating images, not image processing.
I'm afraid there aren't any libraries that have been written only for creating images. Most of the examples I have seen around are using some kind of image processing library (like PiL) and rely on clever algorithms.
Besides, procedural generation of various data structures can be used in variety of scenarios besides generating images/textures.
You can find a big list of algorithms from Procedural Content Generation Wiki.
The very basic 'picture drawing' facilities are provided by the turtle module from the standard Python library. It is not the kind of interface used normally for computer graphics, though.
Depends on what you call "images". If graphs may also be called "images", give matplotlib an eye. It also displays pictures. And there is a huge sample library.
http://matplotlib.sourceforge.net/
精彩评论