Back to photostream

Cluster

Design Something Everyday No. 2

 

Generative Art with ActionScript 3.0

 

First I ran the code, and afterwards took a screenshot, nothing has been edited afterwards.

 

The following code has been used:

 

for (var i:uint = 0; i < 300; i++) {

var circle:Sprite = new Sprite();

circle.graphics.beginFill(Math.random() * 16777215);

circle.graphics.drawCircle(0,0,Math.random()*300);

circle.graphics.endFill();

circle.alpha=Math.random();

circle.x=Math.random()*stage.stageWidth;

circle.y=Math.random()*stage.stageHeight;

addChild(circle);

}

670 views
1 fave
0 comments
Uploaded on January 2, 2010
Taken on January 2, 2010