dee
This commit is contained in:
parent
33234f32ae
commit
46258a83eb
15 changed files with 1303 additions and 446 deletions
|
|
@ -138,6 +138,10 @@ class Effect {
|
|||
ctx.beginPath();
|
||||
ctx.ellipse(0, 0, this.size * 1.25, this.size * 0.72, this.seed, 0, Math.PI * 2);
|
||||
ctx.fill();
|
||||
} else if (this.type === "heart") {
|
||||
const s = this.size * (0.80 + (1 - alpha) * 0.36);
|
||||
ctx.rotate(Math.sin(this.seed + (1 - alpha) * 3.2) * 0.18);
|
||||
drawHeartShape(ctx, 0, 0, s, { fill: this.color || "rgba(240,91,135,0.92)", stroke: "rgba(255,252,246,0.88)", alpha: 1 });
|
||||
} else if (this.type === "ring") {
|
||||
ctx.strokeStyle = this.color;
|
||||
ctx.lineWidth = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue