gradient

· 15년 전 · 1208
package {
import flash.display.Sprite;
import flash.display.BlendMode;
import flash.display.GradientType;
import flash.geom.Matrix;


public class ASExam32 extends Sprite {

public function ASExam32() {
drawRainbow();
}
private function drawRainbow():void {
var myRainbow:Sprite = new Sprite();
var gradientBoxMatrix:Matrix = new Matrix();

gradientBoxMatrix.createGradientBox(150,0,0,25,0);
myRainbow.graphics.beginGradientFill(GradientType.LINEAR,[0xff0000,0xffa500,0xffff00,0x008000,0x0000ff,0x4B0082,0x800080],[1,1,1,1,1,1,1],[0,32,64,128,170,210,255],gradientBoxMatrix);
myRainbow.graphics.drawRect(0,0,150,150);
myRainbow.graphics.endFill();
this.addChild(myRainbow);


}
}
}<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:50:06 Flash에서 이동 됨]</div>
|
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
15년 전 조회 828
15년 전 조회 1,362
15년 전 조회 739
15년 전 조회 720
15년 전 조회 657
15년 전 조회 664
15년 전 조회 645
15년 전 조회 1,925
15년 전 조회 734
15년 전 조회 800
15년 전 조회 710
15년 전 조회 1,289
15년 전 조회 1,209
15년 전 조회 722
15년 전 조회 695
15년 전 조회 2,073
15년 전 조회 609
15년 전 조회 663
15년 전 조회 904
15년 전 조회 715
15년 전 조회 586
15년 전 조회 970
15년 전 조회 703
15년 전 조회 752
15년 전 조회 656