Am 09.05.2006 um 11:33 schrieb <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>:
Hi,
While we’re still on the subject, anyone has suggestions on the
approach to a mouse-dragging-driven smear effect?
Maybe copypixelling a small region around the cursor, do some
pixelpushing on that, and copy it back with a < 100% blend?
Main concern here would of course be performance... I've seen some
nice things in flash using displacement maps...
First thing to try is to use quads with copyPixels and leave "the
magic" to Werner Sharps IL code, using the undocumented #dither
parameter with the value 1969 for antialiasing, instead of going
through each pixel with very slow get- and setPixel()
something like this:
<http://www.farbflash.de/cgi-bin/blosxom.cgi/Dokumente/Director/
Opensource/Imaging/goo.html>
this can be optimized by dividing the image in more than only 4
quadrants, like in the example, so that you achieve a given radius of
affection.
---------------------------
|||
a¿ex
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]