Article list about 탄젠트 1


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 Graphic Design Bon Jovi 희망청 as3 Seoul Media Jam 2nd typography typesql bust this interaction adaa ccSalon 미디어아트워크샵 code can be art VDJing DirectX papervision3d arduino vj composition interactive vjing project randomwalks wearable

메뉴 (77)
Media Art (35)
Graphic Design (6)
Flash (6)
Works (19)
Experiment (3)
Music (6)

Recent Articles : 디자인은 " "... (3) // Peppertones "N... (4) // “Le Voyageur... (2) // Peppertones "N... (6) // 베토벤 이야기... (3) //
Recent Replies : 스타피카소 5층.... 별똥 08/11 // ㅋㅋ 가면 보여... bizarre 08/08 // 와우 이런 작업을... 08/07 // 오호라~. PyO 08/04 // 오 이런 좋은 행... promise4u 08/02 //
Recent Trackbacks : bizarre의 생각. bizarre7's me2DAY 08/01 / bizarre의 생각. bizarre7's me2DAY 07/21 / bizarre의 생각. bizarre7's me2DAY 06/17 /
Site Link : HYPERCORTEX.   it&#039;s the re...   take-off.   venux.   피 패러다임.   해멍대발견!!!.  

Total 56843   Today 7   Yesterday 99