lineCap - property of the CanvasCtx object
Description:
The property returns or sets the line ending style.
Values:
butt (default) - A flat edge is added to the end of the line of defined length
round - A rounded end cap is added to the end of the line of defined length
square - A square end cap is added to the end of the line of defined length
Note:
Property access
for read and write.
This property is also functional in
Web panels.
Example:
The
ctx variable represents the drawing canvas (
CanvasCtx). The setup is done on the "
Draw" tab at the beginning of the script of drawing event
onDraw as follows:
var ctx =
pEvent.
GetCtx(1);
JavaScriptSelect and copy to clipboard
ctx.lineCap = "butt";