Egret之虚线的绘制

    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;
    }

Egret之虚线的绘制

上一篇:ABP官方文档翻译 0.0 ABP官方文档翻译目录


下一篇:Egret之渐变填充