[]想绘制一个自适应得圆角矩形框,失败了,求解惑

var login = (function(_super){
function login(){
login.super(this);
var stageWidth = Laya.stage.width;
var stageHeight = Laya.stage.height;
console.log(stageWidth*0.05+":"+stageHeight);
var path = [
["moveTo",stageWidth*0.05,0],
["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10],
["actTo",stageWidth*0.8,stageHeight*0.6,stageWidth*0.75,stageHeight*0.6,10],
["actTo",0,stageHeight*0.6,0,stageHeight*0.55,10],
["actTo",0,0,stageWidth*0.05,0,10],
];
this.graphics.drawPath(0,0,path,{fillStyle: "#ff0000"},{"strokeStyle":"#ffffff","lineWidth":"1"});
}
Laya.class(login,"login",_super);
var _proto = login.prototype;
return login;
})(Laya.Sprite);
已邀请:

qwer0258

赞同来自:

好的,已经解决了这个问题

Monica - 知识达人

赞同来自:

可以先看下这个Demo绘制各种形状 ,有问题再联系!

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作