Source code
Revision control
Copy as Markdown
Other Tools
<!doctype HTML>
<html>
<head>
<title>HTML5 Canvas Test: "square" lineCap</title>
</head>
<body>
<p>Description: The square value of lineCap means that a rectangle with the length of the line width and the width of half the line width, placed flat against the edge perpendicular to the direction of the line, must be added at the end of each line.</p>
<div><img src='/images/black-rectangle.png' alt='black rect' /></div>
</body>
</html>