Code Can Be Art - ActionScript 3.0 | 2007/05/16 01:35



AS3.0 으로 처음 작업했습니다. 사실은 이전에 가지고 놀던 탄젠트함수로 만들어 본건데
퍼포먼스가 상당히 좋으네요

공부도 되고 - 0- -0 -
아래는 소스입니다
package
{
 import flash.display.*;
 import flash.events.Event;
 public class Codecan extends MovieClip
 {
  public function Codecan()
  {
   this.initialize();
  }
   
  public function initialize()
  {
   
   var num:Number = 0;
   for (var i = 0; i < 5; i++)
   {
    for (var j = 0; j < 10; j++)
    {
     var circle:Type = new Type();
     circle.x = 30+ i * 180;
     circle.y = j * 38;
     circle.mynum = num;
     circle.alpha = 20;
     circle.sx = circle.scaleX;
     circle.sy = circle.scaleY;
     circle.ang = 0;
     this.addChild(circle);
     num++;
     circle.addEventListener(Event.ENTER_FRAME, enterfrmHander);
     }
   }
  }
 
  public function enterfrmHander(evt:Event):void
  {
   var Thiss = evt.currentTarget;
   Thiss.x = Thiss.scale = Thiss.alpha = Thiss.sx + (Math.tan(Thiss.ang) * (Thiss.mynum * 2));
   Thiss.ang+=(Thiss.mynum / 450);
  }
 }


TAG : , , , , ,







media art Flash 미디어아트 vjing vvvv Processing ccrealmixter creative commons Bon Jovi as3 Seoul Media Jam 2nd 희망청 Graphic Design typography bust this interaction ccSalon 미디어아트워크샵 VDJing code can be art DirectX papervision3d project randomwalks vj arduino typesql composition adaa wearable party 2007

메뉴 (75)
Media Art (35)
Graphic Design (6)
Flash (6)
Works (17)
Experiment (3)
Music (6)

Recent Articles : “Le Voyageur... (2) // Peppertones "N... (6) // 베토벤 이야기... (3) // TypeSQL has be... (12) // 늦은 후기 3 :... (5) //
Recent Replies : 친구랑도 연락이... bizarre 06/29 // 관리자만 볼 수... 06/29 // ㅋㅋ 작업 재밋게... bizarre 06/24 // 안녕하세요 구글... 06/23 // 곰아어!!. bizarre 06/23 //
Recent Trackbacks : bizarre의 생각. bizarre7's me2DAY 06/17 / bizarre의 생각. bizarre7's me2DAY 06/16 / 8con의 생각. 8con's me2DAY 05/21 /
Site Link : 350번째 크리스마스.   HYPERCORTEX.   it&#039;s the re...   Lemon 30ml.   Marblog.org.   Planet Theas.   take-off.   venux.   인디애니메이션영...   피 패러다임.   해멍대발견!!!.  

Total 51623   Today 87   Yesterday 151