Hi, I'd like to announce the simple frame buffer module that I wacked together after being fed up with having to create a GUI every time I wanted to illustrate something simple in Python (such as the iterative improvement of some problem). A short sample: import fb # import module f = fb.FrameBuffer() # create an instance f.open(200, 200, "demo") # open a window named "demo" for i in range(10, 190): # simple loop f.fg = (i, i, i) # set fg colour f.plot(i, i) # plot f.flip() # flip buffers raw_input('enter to quit') # wait for keypress f.close() # close window Could be useful if you want students to be able to create simple graphics without having to teach them a GUI. The extension uses SDL to manage the graphics. The extension is available at http://dave.whatever.nu/python/fb/ Comments, suggestions and bug reports are all very welcome :). Sincerely, -- David Pettersson dave@whatever.nu
On 24 Aug 01, at 20:42, David Pettersson wrote:
I'd like to announce the simple frame buffer module
Looks like fun, I'll take a looksee.
The extension uses SDL to manage the graphics.
This is the second time I've seen SDL mentioned in the context of graphics this week.... To me SDL stands for Specification and Design Language - a truly great design notation but not obviously graphics oriented... I assume there's another and while a web search would no doubt reveal all, I'm feeling lazy. So whats SDL in a graphics context? Alan G.
SDL is the Simple DirectMedia Layer http://www.libsdl.org/ <siteblurb> Simple DirectMedia Layer is a cross-platform multimedia library designed to provide fast access to the graphics framebuffer and audio device. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power." Simple DirectMedia Layer supports Linux, Win32, BeOS, MacOS, Solaris, IRIX, and FreeBSD. SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, Eiffel, ML, Perl, PHP, Python, and Ruby. </siteblurb> Pygame is probably the best known python project built on top of SDL: http://pygame.seul.org/ HTH --Dethe -- Dethe Elza (delza@burningtiger.com) Chief Mad Scientist Burning Tiger Technologies (http://burningtiger.com) Living Code Weblog (http://livingcode.ca)
participants (3)
-
agauld@crosswinds.net
-
David Pettersson
-
Dethe Elza