Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy HTML Canvas miterLimit Property</title> </head> <body> <h1>Wikitechy HTML Canvas miterLimit Property</h1> <canvas id="wikitechyCanvas" width="200" height="150" style="border:1px solid red;"> </canvas> <script> var ml= document.getElementById("wikitechyCanvas"); var mlx = ml.getContext("2d"); mlx.lineWidth = 10; mlx.lineJoin = "miter"; mlx.miterLimit =7; mlx.moveTo(30, 10); mlx.lineTo(150,75); mlx.lineTo(15, 100); mlx.stroke(); </script> </body> </html>
Result