subtype idKGScriptParserduration?ð framebaseencodingparms inputFormat inputCountpublicurltitlewww.fxscript.orguitype typedefaultstringvalueh_amount HorizontalminmaxBÈBHBHrampA v_amountVerticalBÈBHBHA  acceleration Acceleration@@?€?€rptedges repeat edgespostblur post blurAðprivatestaticsscript//Inspired by the excellent wind blur cross script by Matt Sandström (mattias@beauty.se) //This uses the diffuse function, with the option of a post blur to soften things up a bit //This filter is freeware, released under the GPL license. //You can do what you want with it as long as you leave it unencoded and include this message. transition "diffuse cross" group "stib's transitions" wipeCode(0, 100); producesAlpha; input url, "www.fxscript.org", Label, "string" input H_Amount, "Horizontal", Slider, 50, 0, 100 ramp 20; input V_Amount, "Vertical", Slider, 50, 0, 100 ramp 20; input Acceleration, "Acceleration", Slider, 1, 0, 3 ; input RptEdges, "repeat edges", CheckBox, true input postblur, "post blur", Slider, 0, 0, 30 ramp50 code float w,h,BlendAmount, BlurFactor; dimensionsof(dest,w,h); image buf1[w][h]; H_Amount = (H_Amount/100)*(h+w)/2 V_Amount = (V_Amount/100)*(h+w)/2 //scale the blur amount to match the size of the screen BlurFactor = 1-power(Abs(100-200*ratio)/100,acceleration); //ramps up from zero to 1 and back to 0 with acceleration determining the sharpness of the peak // the factor of 100 is because Abs only handles integers, so we scale ratio up if (ratio<= 0.5) BlendAmount = BlurFactor/2; else BlendAmount = 1- BlurFactor/2 end if; H_Amount *= BlurFactor/2 V_Amount *= BlurFactor/2 blend(src1, src2, buf1, BlendAmount); if (postblur>0) image buf2[w][h]; //if we're adding post blur we need another image buffer to blur from Diffuse(buf1,buf2, RptEdges, 0-H_Amount, H_Amount, 0-V_Amount, V_Amount); blur(buf2, dest, postblur*BlurFactor, aspectof(dest))//add blur else Diffuse(buf1,dest, RptEdges, 0-H_Amount, H_Amount, 0-V_Amount, V_Amount); end if //version 2 has the blend taking place before the diffuse - so you only need to diffuse one image. Of course!name diffuse crossscriptid/groupstib's transitionswipecode wipeaccuracyd producesalphaencoded