This commit is contained in:
Dragon Fire
2021-03-28 13:18:18 -04:00
parent 57b9e2c5cf
commit f4e89f7f9b
+1 -1
View File
@@ -137,7 +137,7 @@ module.exports = class CanvasUtil {
const outerRadius = width * 0.5; const outerRadius = width * 0.5;
const innerRadius = width * 0.2; const innerRadius = width * 0.2;
const grd = ctx.createRadialGradient(width / 2, height / 2, innerRadius, width / 2, height / 2, outerRadius); const grd = ctx.createRadialGradient(width / 2, height / 2, innerRadius, width / 2, height / 2, outerRadius);
for (let i = 0; i <= 1; i += 0.1) { for (let i = 0; i < 1; i += 0.1) {
grd.addColorStop(i, `rgba(0, 0, 0, ${i})`); grd.addColorStop(i, `rgba(0, 0, 0, ${i})`);
} }
ctx.fillStyle = grd; ctx.fillStyle = grd;