为了账号安全,请及时绑定邮箱和手机立即绑定

lineWidth除去放大的倍数不就可以了吗

lineWidth除去放大的倍数不就可以了吗

正在回答

3 回答

可行,我试了,效果很好。

        ctx.save();

	//translate
	ctx.translate(originX, originY + 10);
	ctx.rotate(rotation);
	ctx.scale(outRadius, outRadius);

	//draw
	drawStarPath(ctx);

	ctx.lineWidth = borderWidth / outRadius;
	ctx.strokeStyle = borderColor;
	ctx.fillStyle = fillColor;
	ctx.lineJoin = "round";

	ctx.fill();
	ctx.stroke();
	
	ctx.restore();


0 回复 有任何疑惑可以回复我~

实现不了,我感觉放大的是整个画布呢

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

lineWidth除去放大的倍数不就可以了吗

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信