wow ricardo! such a great amount of hacking. Chapeau! I tested it a bit and it seems to work really fine, and fast. I only found a little problem in scripts with a draw() function when size() statement is outside the setup() function. In that case the window is created with default size and not according to size() statement. (actually in this case the script itself is sort of wrong, as it makes really no sense to leave the size() call outside of setup)
Thanks for you kind words of appreciation for my little hacks on text and clip paths. The funniest thing about it is I don't know how things work either: i completely forgot about it! (I'm getting old, it seems) ;) I'll do some more testing. I didn't had the time to fix libraries yet, sorry... F. Il giorno gio, 25/06/2009 alle 00.46 +0530, ricardo lafuente ha scritto: > clipping paths, images and text are now all working in the new branch. > Whew. > i renamed the 'RestoreCtx' class to 'EndClip', which makes its purpose > more evident. > check out the commit messages to see what other things i've tweaked > there (). > while trying to fix all the broken stuff i ran into a few issues and > fixed most of them. > > Francesco, you've got my total respect for the great hacks you made in > clips and text -- took me a while to get it, but everything is really > neatly done. I've just repositioned some calls, but wow, great work. I > still don't know how you got the clips to work with save/restore, > Cairo just drove me mad and i ended up going back to your double-save > hack, which i still don't know how works (i just know that it does :) > > one thing on my mind is to review the ShoebotDrawingArea so that > expose events don't run the script again (only scripts with a draw > loop should be animated/refreshed, but you'll see them being re-run if > you resize the window. They should just redraw the canvas, not run the > script again.) > > oh, and i got a Drawbot implementation almost there, just missing text > support. Woo! I'm a happy hacker tonight :) > > please test some stuff if you feel like it. I'd love to be confident > enough to pull all these changes by the end of the week. Francesco, > let me know if you need help updating the lib imports. > cheers y'all > > architetto francesco fantoni <hva - hermanitos verdes architetti> > wrote: > > clipping paths seem not to work anymore either > > > > Il giorno sab, 20/06/2009 alle 20.31 +0200, architetto francesco fantoni > > ha scritto: > > > > > colors library is broken as well with file-structure refactoring: > > > it used to do things like "from shoebot import Color as BaseColor" or > > > "from shoebot import RGB", and now it doesn't know where to find the > > > classes it needs > > > > > > Il giorno sab, 20/06/2009 alle 20.23 +0200, architetto francesco fantoni > > > ha scritto: > > > > > > > hi ricardo, > > > > seems a lot faster indeed. > > > > there are some things still broken anyway, two I noticed are: > > > > > > > > -text is not working > > > > - .fill and .stroke attributes for objects seems not to be working > > > > anymore either. (e.g.sun_planet_moon_2.bot in nodebox examples > > > > subfolder) > > > > > > > > francesco > > > > > > > > > > > > Il giorno sab, 20/06/2009 alle 23.21 +0530, ricardo lafuente ha scritto: > > > > > > > > > hey guys, > > > > > > > > > > after the file structure refactoring, i couldn't help taking another > > > > > stab at finding the bottlenecks in the transform code. > > > > > it turns out that after > > > > > - removing individual path transforms, which breaks stuff like > > > > > rect(0,0,10,10, scale=(2,2)), but that won't be hard to put back > > > > > again > > > > > and is a bit pointless anyway > > > > > - having the canvas directly process the drawables as Bot passes > > > > > them, > > > > > instead of building a drawables stack that get drawn in the end of > > > > > the > > > > > loop; then it applies the Bot transform matrix instead of the one in > > > > > the > > > > > drawable > > > > > - and doing some cleanup on the canvas drawing code, > > > > > > > > > > stuff looks quite a bit faster to me. My eee shows something like a > > > > > 2x > > > > > increase in speed in the planets script that Stu sent to the list > > > > > some > > > > > months ago. > > > > > if you feel like trying the new code, get it through > > > > > > > > > > hg clone http://bitbucket.org/rlafuente/shoebot-filestructure > > > > > > > > > > the script i mentioned is in examples/basic/transform/planets.bot (in > > > > > the main branch it's in examples/nodebox/transforms_stress_test.bot > > > > > IIRC) > > > > > > > > > > can any of you guys test it to make sure i'm not seeing things? > > > > > > > > > > :r > > > > > _______________________________________________ > > > > > Shoebot-devel mailing list > > > > > [email protected] > > > > > http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net > > > > > > > > > _______________________________________________ > > > > Shoebot-devel mailing list > > > > [email protected] > > > > http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net > > > > > > > _______________________________________________ > > > Shoebot-devel mailing list > > > [email protected] > > > http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net > > > > > > > _______________________________________________ > > Shoebot-devel mailing list > > [email protected] > > http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net > > > > > > _______________________________________________ > Shoebot-devel mailing list > [email protected] > http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net _______________________________________________ Shoebot-devel mailing list [email protected] http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
