The CanvasRenderingContext2D.lineWidth property of the Canvas 2D API sets the thickness of lines. Skip to main content; Skip to search; Skip to select language; Open main menu. References References. Overview / Web Technology. Web technology reference for developers. HTML . Structure of content on the web. CSS. Code used to describe document style. JavaScript. General-purpose scripting ...
The CanvasRenderingContext2D.lineCap property of the Canvas 2D API determines the shape used to draw the end points of lines. Note: Lines can be drawn with the stroke(), strokeRect(), and strokeText() methods. Value. One of the following: "butt" The ends of lines are squared off at the endpoints. Default value. "round" The ends of lines are rounded. "square" The ends of lines are squared off ...