Wednesday, February 25, 2009

Inkface+pygame v0.2.0

As per the plan for v0.2, I am ready with a working implementation of inkface. I also made few more design decisions after my last design post. Here are the highlights:

1. All code is in python
2. For X11 surfaces, pygame is used.

I found that pygame (python bindings for SDL) is a mature library for drawing on X11 surfaces. It also has some optimizations which help in 2D animations. There is also OpenGL support, but I do not plan to use it inside inkface library. It is also well supported on Maemo.

I have written my favorite twitter client app with the new inkface-pygame library. The following video demo shows, how I could quickly code 2D scrolling animation with the help of pygame.

The v0.2.0 is delivered as a tarball. I have also updated the inkface wiki with some getting-started tips.


Anonymous said...

Hello, perhaps i'm doing something wrong, but after installation I can't run tests.
jecl~/Develop/altcanvas/inkface-pygame $ sudo python install
running install
running build
running build_py
running install_lib
running install_egg_info
Removing /usr/lib/python2.6/site-packages/inkface_pygame-0.2.0-py2.6.egg-info
Writing /usr/lib/python2.6/site-packages/inkface_pygame-0.2.0-py2.6.egg-info

jecl ~/Develop/altcanvas/inkface-pygame $ cd tests

jecl ~/Develop/altcanvas/inkface-pygame/tests $ python
Traceback (most recent call last):
File "", line 3, in module
from inkface.canvas import PygameFace, PygameCanvas
File "/usr/lib/python2.6/site-packages/inkface/canvas/", line 4, in module
import pygame
ImportError: No module named pygame

Anonymous said...

Sorry, i'm not too familar with python. After installation of pygame, everything is ok.