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

Carl Worth cworth at east.isi.edu
Fri Nov 14 07:34:09 PST 2003


On Nov 14, Jesse Andrews wrote:
 > I hacked a quick Lindenmayer system for cairo using the python-cairo 
 > port by jamesh.

Cool. l-systems are fun. 


 > 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 :)
 > 
 > 
 > _______________________________________________
 > cairo mailing list
 > cairo at cairographics.org
 > http://cairographics.org/cgi-bin/mailman/listinfo/cairo




More information about the cairo mailing list