Set Caps style to Round
package{
import flash.display.Sprite;
import flash.display.*;
public class Main extends Sprite{
public function Main(){
graphics.lineStyle(1, 0xff0000, 1, true, LineScaleMode.NONE, CapsStyle.ROUND, JointStyle.ROUND, 20);
for(var i:int=0;i<100;i++) {
graphics.lineTo(Math.random( ) * 400, Math.random( ) * 400);
}
}
}
}
Related examples in the same category