Menu

color

2016. 5. 26. 13:24

안개핑 Swish study

 

 

 

 

화면전체의 색이 변하는...

----------------------------
iig59에 들어가는 스크립트액션.
----------------------------
onFrame (1,afterPlacedObjectEvents) {
    background.cObject = new Color(background);
    background.cTransform = new Object();
    background.cTransform.rb = 0;
    background.cTransform.gb = 0;
    background.cTransform.bb = 0;
    background.cTransform.ab = 0;
    this.r = Math.sin(angle1)*100;
    this.g = Math.cos(angle2)*100;
    this.b = Math.sin(angle3)*100;
    angle1 += 0.01;
    angle2 += 0.02;
    angle3 += 0.03;
    this.cTransform.rb = this.r;
    this.cTransform.gb = this.g;
    this.cTransform.bb = this.b;
    this.cObject.setTransform(this.cTransform);
    background.onEnterFrame = function() {
        this.r = Math.sin(angle1)*70;
        this.g = Math.cos(angle2)*70;
        this.b = Math.sin(angle3)*70;
        angle1 += 0.02;
        angle2 += 0.03;
        angle3 += 0.04;
        this.cTransform.rb = this.r;
        this.cTransform.gb = this.g;
        this.cTransform.bb = this.b;
        this.cObject.setTransform(this.cTransform);
};
}

'Swish study' 카테고리의 다른 글

화면전환-8  (0) 2016.05.26
화면전환-7  (0) 2016.05.26
달랑달랑  (0) 2016.05.26
물방울3  (0) 2016.05.26
mask-slide  (0) 2016.05.26