To set the rendering style for corners, we use lineStyle( )'s joints parameter. : LineStyle : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » LineStyle »

 

To set the rendering style for corners, we use lineStyle( )'s joints parameter.


 

package{
  import flash.display.*;
  
  public class Main extends Sprite{
    public function Main(){

        var triangle:Shape = new Shape(  );
        triangle.graphics.lineStyle(2001, false, LineScaleMode.NORMAL,
                                    CapsStyle.ROUND, JointStyle.MITER);
        
        triangle.graphics.beginFill(0xFF00001);
        triangle.graphics.lineStyle(20);
        triangle.graphics.lineTo(125125)// Draw a line down and right
        triangle.graphics.lineTo(2500);   // Draw a line up and right
        triangle.graphics.lineTo(00);     // Draw a line left
        triangle.graphics.endFill(  );
        addChild(triangle);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Graphics
» LineStyle