标签:lse ted round cal dash gre nes graphics ati
static createDashLine(color: number, width: number, height: number = 1): egret.Shape {
let $dashLineSp: egret.Shape = new egret.Shape();
$dashLineSp.width = width;
$dashLineSp.height = height;
$dashLineSp.graphics.lineStyle(height, color, 1.0, false, egret.StageScaleMode.EXACT_FIT, egret.CapsStyle.ROUND, egret.JointStyle.ROUND, 2, [5, 5]);
$dashLineSp.graphics.moveTo(0, 0);
$dashLineSp.graphics.lineTo(width, 0);
$dashLineSp.graphics.endFill();
return $dashLineSp;
}
标签:lse ted round cal dash gre nes graphics ati
原文地址:https://blog.51cto.com/aonaufly/2466253