Skip to content

Commit

Permalink
Update canvas-painter.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnole25 authored Jun 24, 2024
1 parent 278b349 commit afd377a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canvas-painter.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
ctx.beginPath();
ctx.moveTo(x2 + Math.cos(tilt) * size, y2 + Math.sin(tilt) * size);
for (z2 = 1; z2 <= sides; z2 += 1) {
ctx.lineTo (x2 + size * Math.cos(z2 * 2 * Math.PI / sides + tilt), y2 + size * Math.sin(z2 * 2 * Math.PI / sides + tilt));
ctx.lineTo (x2 + size * Math.cos(z2 * 2 * Math.PI / sides + tilt), y2 + size * Math.sin(z2 * 2 * Math.PI / sides + tilt));
}
endPath();
}
Expand Down

0 comments on commit afd377a

Please sign in to comment.