AS3曲线绘制API和Glow
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AS3曲线绘制API和Glow相关的知识,希望对你有一定的参考价值。
var lineDrawing:MovieClip = new MovieClip(); this.addChild(lineDrawing); lineDrawing.graphics.lineStyle(1, 0x000000, 1 ); lineDrawing.graphics.beginFill( 0x990000, 1 ); lineDrawing.graphics.moveTo(100,100); lineDrawing.graphics.lineTo(100,200); lineDrawing.graphics.lineTo(300,200); lineDrawing.graphics.lineTo(300,100); lineDrawing.graphics.curveTo(200,0, 100,100); //the first two numbers are your control point for the curve ///Glow Filter var glow:GlowFilter = new GlowFilter(); glow.color = 0x009900; glow.alpha = 1; glow.blurX = 25; glow.blurY = 25; var dropShadow:DropShadowFilter = new DropShadowFilter(); dropShadow.color = 0x000000; dropShadow.blurX = 10; dropShadow.blurY = 10; dropShadow.angle = 0; dropShadow.alpha = 0.5; dropShadow.distance = 25; var filtersArray:Array = new Array(glow, dropShadow); lineDrawing.filters = filtersArray;
以上是关于AS3曲线绘制API和Glow的主要内容,如果未能解决你的问题,请参考以下文章