[Cairo] Lindenmayer System update
Jesse Andrews
jdandr2 at uky.edu
Fri Nov 21 14:31:17 PST 2003
Hi,
I have update the LSystem for python-cairo at
http://tux4kids.net/~jdandr2/cairo/
The tree/plant work now (i.e. I corrected my algorithm so save/restore
work!)
plant: f->f[+f]f[-f]f
tree: f->ff+[+f-f-f]-[-f+f+f]
key:
##################################
# #
# f == forward #
# [ == ctx.save() #
# ] == ctx.restore() #
# + == rotate clockwise #
# - == rotate counterclockwise #
# #
##################################
Screenshots on site.
[I'll work in Cairo's CVS once I have time to get that set up]
Jesse
More information about the cairo
mailing list