[Cairo] py-cairo example & Context save/restore quesiton

Jesse Andrews jdandr2 at uky.edu
Thu Nov 13 22:49:04 PST 2003


Hello,

I hacked a quick Lindenmayer system for cairo using the python-cairo 
port by jamesh.

http://tux4kids.net/~jdandr2/cairo/

python-cairo worked pretty good except for the fact that saving and 
restoring state in a context seem to take "forver" (in the sense that 
doing that hundreds of times in a update took seconds) and the fact that 
the state doesn't seem to be stored.

Is the state (rotate/translation/position) stored just as in the 
postscript model or is this a different idea?

( Note: python-cairo & cairo are currently out of sync, so compiling 
took some commenting out source of python-cairo )


Thanks,
Jesse Andrews

ps. jamesh great work on the wrappers...  excellent work like pygtk :)





More information about the cairo mailing list