2010년 12월 3일 금요일

Mark Rothko's ..and Dwele_Free As A Bird.mp3

Untitled from anne of green gables on Vimeo.




var url=new URLRequest("Dwele - Free As A Bird.mp3")
var s:Sound = new Sound(url)
var sh:SoundChannel = s.play();
var sw = stage.stageWidth
var bottom = stage.stageHeight
stage.addEventListener(Event.ENTER_FRAME,loop);
var bmd:BitmapData = new BitmapData(sw,bottom)
var bmp:Bitmap=new Bitmap(bmd);
addChild(bmp);
// 색 추출시의 파렛트 역할하는 비트맵 --------------
var bmd2:BitmapData= new BitmapData(sw,bottom);
bmd2.draw(faceMc);
//--------------------------------------------------
function loop (e){
 var byteArray:ByteArray = new ByteArray();
 SoundMixer.computeSpectrum(byteArray,true); //양수만 뽑으려면 true 다 뽑으려면 안씀
 this.graphics.clear();

 for(var i=0; i<200; i++){
  var px = Math.random()*sw;
  var py = Math.random()*bottom;
  var color = bmd2.getPixel(px,py);
  var spectValue = byteArray.readFloat()*100;
   this.graphics.lineStyle(spectValue/100,color,1.7)
   this.graphics.moveTo(px,py)

 if(Math.random()>0.5){
   this.graphics.lineTo(px+spectValue,py+spectValue);
 }else{
   this.graphics.lineTo(px-spectValue,py+spectValue);
}

//this.graphics.lineTo(px+spectValue,py+spectValue);
}
bmd.draw(this);
}


Green, white and yellow on yellow by Mark Rothko

Green, white and yellow on yellow
Paper size
80cm x 60cm
32" x 24"
 

About Mark Rothko

Mark Rothko's paintings with their large expanses of colour and uneven, hazy divisions between them, strive to convey emotions rarely attempted in modern art. While his work is greatly admired by many, his detractors either view his attempts at expressing the sublime as over-ambitious or see his paintings merely as boring and wholly unimpressive.