Modified value sent to sin & cos to give full range, so @ 0 degrees t=0,
@ 360 degrees t=1 (t parameter is in settings tab). values inbetween
shrink horizontally, vertically or both, or expand horizontally,
vertically, or both. The animate functionality of the mathmap plugin can
then, using this expression, create a loopable animation.

#------------------------------
#gimp mathmap plugin expression
#warps one image with another
#images must be same size
nsc=user_float("nsc",0,6);
img=user_image("img");
sb=user_float("sb",-3,3);
p=origVal(xy,img);
origValXY(x+(x*p[0]*sin(t*pi*2))/nsc,y+(y*p[1]*cos(t*pi*2))/nsc)/p*sb
#------------------------------

see last part of the last line /p*sb, this is how the two images, are
overlaid, the other operators (+,-,*) can also be used, sb is just a
kind of scale effect, and generally needs to be positive. experiment.

gimp:     http://www.gimp.org
mathmap:  http://www.complang.tuwien.ac.at/~schani/mathmap/ (not windows)
-

On 6/2/2007, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

>origValXY(x+(x*p[0]*sin(t))/nsc,y+(y*p[1]*cos(t))/nsc)/p*sb

_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour

Reply via email to