[Flash]http://www.bit-101.com/blog/flash/060120.swf, 400, 400[/Flash]
[code lang=”actionscript”]
import flash.display.BitmapData;
var rect:flash.geom.Rectangle = new flash.geom.Rectangle(0, 0, Stage.width, Stage.height);
var point:flash.geom.Point = new flash.geom.Point();
var perlin:BitmapData = new BitmapData(Stage.width, Stage.height, false, 0xffffff);
var perlin2:BitmapData = new BitmapData(Stage.width, Stage.height, false, 0xffffff);
perlin.perlinNoise(50, 50, 1, Math.random() * 1000, true, true, 1, true);
var bmp:BitmapData = new BitmapData(Stage.width, Stage.height, false, 0xffffff);
var bmp2:BitmapData = new BitmapData(Stage.width, Stage.height, false, 0xffffff);
_root.attachBitmap(bmp2,0);
bmp.noise(1000,0,255,1|2|4,true);
bmp.applyFilter(bmp,
rect,
point,
new flash.filters.BlurFilter(20, 1, 5));
function onEnterFrame()
{
perlin2.copyPixels(perlin,
rect,
new flash.geom.Point(-1, 0));
perlin2.copyPixels(perlin,
new flash.geom.Rectangle(0, 0, 1, Stage.height),
new flash.geom.Point(Stage.width – 1, 0));
perlin.copyPixels(perlin2, rect, point);
bmp2.copyPixels(bmp, rect, point);
bmp2.applyFilter(bmp2,
rect,
point,
new flash.filters.DisplacementMapFilter(perlin, point, 1, 1, 2, 10));
}
[/code]
Whoah 😮
Cool ! Real nice thing, and good perfomance !
Hi Keith
Really good effect indeed 🙂
A little question about worpress, do you use a plug in to add swf into your posts/pages ? If yes which one do you use ?
Thanks
++
Yeah, Flashifier: http://www.ryanmeyers.com/wordpcress/index.php?p=14&cat=2
as always, Inspiring and Motivating!!! keep up the great work!! don’t stop the experiments!! long may they live 😉
cheers and thx
erick
hi,
really great to see things like that work in flash!
i wonder how it would be possible, for a perlin noise pattern, like this: http://www.jasonarena.com/blog/?p=34 , not to use the bitmapData class, but output it as vector, so one could export big print material…?
best
steph