appropriate graphics Lib?

Pete Shinners pete at shinners.org
Wed Sep 5 11:29:36 EDT 2001


"Bob Roberts" <bobnotbob at byu.edu> wrote
> Let me clarify a bit.  I would like to be able to draw these irregular
> shapes from images to make them look better than simple polygons.
> Which graphics lib would facilitate drawing these images on the screen
> and knowing which one was picked?

hmm, i don't know if the tkinter canvas supports images like this,
you'd really have to check, but i suspect no. you might think about
pyopengl or pygame at this point. with pyopengl you can easily
do things like change the color, plus you are more likely to get
hardware acceleration. as for pygame, it could also handle the task.
it supports images with colorkeys or alpha planes, which would handle
the nonrectengular shaped images. using Numeric python, you can
very easily alter the color of truecolor images. you could also use
colormaps, and easily change a couple values in the colormap.

if you decide to go with pygame, i'd be glad to help out :]
but don't let that rule out pyopengl first, especially the
higher level object stuff that mike mentioned in an earlier post.






More information about the Python-list mailing list