Skip to content

Commit 955368c

Browse files
committed
Improve mathematics
1 parent dbb2047 commit 955368c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/houdini/avatar-polygon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ registerPaint(
2323
ctx.translate(-width / 2, -height / 2);
2424
ctx.beginPath();
2525

26-
let xPos: number = center.x + radius * Math.cos((2 * Math.PI * 0) / steps);
27-
let yPos: number = center.y + radius * Math.sin((2 * Math.PI * 0) / steps);
26+
let xPos: number = center.x + radius * Math.cos(0);
27+
let yPos: number = center.y + radius * Math.sin(0);
2828

2929
ctx.moveTo(xPos, yPos);
3030

0 commit comments

Comments
 (0)