Skip to content

Commit

Permalink
fix compile error, version bump to 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-wa committed Nov 7, 2021
1 parent c33cff8 commit b402f25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stickerify",
"version": "0.1.3",
"version": "0.1.4",
"description": "add sticker outline to images with transparent edges",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ function stickerify(
for (let angle = 0; angle < 360; angle += 360 / samples) {
ctx.drawImage(
img,
thickness * Math.sin( ( Math.PI * 2 * angle ) / 360 ) + x,
thickness * Math.cos( ( Math.PI * 2 * angle ) / 360 ) + y
thickness * Math.sin((Math.PI * 2 * angle) / 360) + x,
thickness * Math.cos((Math.PI * 2 * angle) / 360) + y
);
}

ctx.globalCompositeOperation = "source-in";
ctx.fillStyle = fillStyle;
Expand Down

0 comments on commit b402f25

Please sign in to comment.