CLICK HERE TO COPY
Actionscript:
var canvas:BitmapData = new BitmapData(1200,1200,false, 0x000000);
addChild(new Bitmap(canvas));
scaleX = scaleY = 0.5;
var w:int = canvas.width
var hw:int = w / 2;
var hhw:int = hw / 2;
var size:int = canvas.width * canvas.width;
canvas.perlinNoise(hhw,hhw,1,Math.random()*100,false, false, 1, true);
for (var i:int = 0; i<size; i++){
var xp:int = i % w;
var yp:int = int(i / [...]
CLICK HERE TO COPY
Actionscript:
var canvas:BitmapData = new BitmapData(1200,1200,false, 0x000000);
addChild(new Bitmap(canvas));
scaleX = scaleY = 0.5;
var w:int = canvas.width
var hw:int = w / 2;
var hhw:int = hw / 2;
var size:int = canvas.width * canvas.width;
canvas.perlinNoise(hhw,hhw,2,Math.random()*100,false, false, 1, true);
for (var i:int = 0; i<size; i++){
var xp:int = i % w;
var yp:int = int(i / [...]
CLICK HERE TO COPY
Actionscript:
var pointNum:int = 3000;
x = stage.stageWidth / 2;
y = stage.stageHeight / 2;
var verts:Vector.<Number> = new Vector.<Number>();
var tVerts:Vector.<Number> = new Vector.<Number>();
var pVerts:Vector.<Number> = new Vector.<Number>();
var uv:Vector.<Number> = new Vector.<Number>();
var cmds:Vector.<int> = new Vector.<int>();
var index:int = 0;
var half:Number = pointNum / 20000;
for (var i:int = 0; i<pointNum; i+=3){
verts[i] = 0.08 * Math.cos(i [...]
CLICK HERE TO COPY
Actionscript:
var pointNum:int = 20000;
var radius:int = 150;
var canvas:BitmapData = new BitmapData(400,400,false, 0x000000);
addChild(new Bitmap(canvas));
var verts:Vector.<Number> = new Vector.<Number>();
var pVerts:Vector.<Number> = new Vector.<Number>();
var uv:Vector.<Number> = new Vector.<Number>();
for (var i:int = 0; i<pointNum; i+=3){
var xp:Number = Math.random() * 400 - 200;
var yp:Number = Math.random() * 400 - 200;
var zp:Number [...]