¾ÆÀÌÀÛÇ°ÀÔ´Ï´Ù.

   Á¶È¸ 5270   Ãßõ 0    

오늘 집에서 몇개의 연습작품을 만들었네요.
그중 두개만 올립니다. space와 drawing입니다.
프레임바애니메이션은 아닙니다.
exe파일을 올릴려니 용량이 초과라 올릴수가 없군요. 하여 소스만 올립니다.
한번 봐주시면 감사드리겠습니다.
****space****
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.geom.ColorTransform;
import flash.filters.GlowFilter;

var bg:Sprite = new Sprite();

bg.graphics.beginFill(0x000000,100);
bg.graphics.drawRect(-685,-295,1915,990);

addChild(bg);

for(var i:int = 0;i<500;i++){
var circle:Sprite = new Sprite();
circle.graphics.lineStyle(5,0xff0000,100);
    circle.graphics.drawCircle(0,0,10);
circle.x=Math.random()*700+(-100);
circle.y=Math.random()*700+(-100);
circle.scaleX=circle.scaleY=Math.random()*1;
circle.alpha=Math.random();
var ct:ColorTransform = new ColorTransform();
ct.color=Math.random()*0xffffff;
circle.transform.colorTransform=ct;
var gf:GlowFilter = new GlowFilter();
gf.blurX=gf.blurY = Math.random()*100+30;
gf.quality = Math.floor(Math.random()*3);
var fa:Array = new Array();
fa.push(gf);
circle.filters=fa;
    addChild(circle);
}
fscommand("fullscreen","true");

***(drawing)****
var sp:Sprite = new Sprite();
addChildAt(sp,0);

for(var i:int=0;i<count;i++){
var cir:Cir = new Cir();
cir.addEventListener(Event.ENTER_FRAME,loop);
cir.x = stage.stageWidth/2;
cir.y = stage.stageHeight/2;
var sh:Shape = new Shape();
sh.graphics.lineStyle(1,Math.random()*0xffff00,1);
sh.graphics.moveTo(cir.x,cir.y);
arr.push(cir);
arr_sh.push(sh);
sp.addChild(sh);
addChild(cir);
}
function loop(e:Event) {
var mc:MovieClip = MovieClip(e.target);
var p:Point = Point.polar(3,-Math.random()*Math.PI*2);
var p1:Point = new Point(mc.x,mc.y);
p1.offset(p.x,p.y);
mc.x=p1.x;
mc.y=p1.y;
}
stage.addEventListener(Event.ENTER_FRAME,drawing);

function drawing(e:Event) {
for(var i:int=0;i<count;i++){
arr_sh[i].graphics.lineTo(arr[i].x,arr[i].y);
}
}
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
¹Úµ¿±Ç 2012-08
random ÇÔ¼ö¿¡¼­ fractal ·Î Àç¹Ì¸¦ ¾÷±×·¹ÀÌµå ½ÃÄѺ¸¼¼¿ä.


QnA
Á¦¸ñPage 2625/5687
2014-05   4996698   Á¤ÀºÁØ1
2015-12   1532604   ¹é¸Þ°¡
2019-06   5271   Àü¼³¼ÓÀǹ̡¦
2014-04   5271   ÃÖÁ¤¹ÎJ
2008-01   5271   ±è¼º¹ü
2007-09   5270   À±È£¿ë
2006-05   5270   Á¤ÇýÁø
2012-03   5270   ±è°Ç¿ì
2008-11   5270   À¯½ÂÇå
2008-01   5270   ±è»ó¿ìAP
2005-11   5270   ±èÀ±¼ö
2006-04   5270   Çã¿í
2013-07   5270   SkyBase
2007-12   5270   Àü±ÙÇö
2020-01   5270   Àü¼³ÀÇÈæ°õ
2017-04   5270   À̱¤¿ëo¿ëÀÎ
2014-08   5270   ¾Æ¸§´Ù¿î³ëÀ»
2006-07   5270   ±èÀç¹Î
2007-05   5270   ¹ÚÁ¤Èñ
2008-07   5270   Á¤¿µÃ¶
2006-03   5270   ·ùÀåÈ£
2006-06   5270   À̼ºÈÆ