【发布时间】:2021-01-08 22:00:59
【问题描述】:
我正在尝试使用画布渲染体验,但是当我渲染体验时它超出了范围。 here
const exp = users.xp;
ctx.beginPath();
ctx.lineWidth - 4;
ctx.strokeStyle = '#ffffff';
ctx.globalAlpha = 0.2;
ctx.fillStyle = '#433F99';
ctx.fillRect(253 + 18.5, 130, 420, 45);
ctx.fill();
ctx.globalAlpha = 1;
ctx.strokeRect(253 + 18.5, 130, 420, 45);
ctx.stroke();
ctx.fillStyle - '#3F9946';
ctx.globalAlpha = 0.6;
ctx.fillRect(253 + 18.5, 130, exp, 45);
ctx.fill();
ctx.globalAlpha = 1;
【问题讨论】:
标签: javascript node.js canvas discord.js