HTML5 Canvas line Cap property can be set with lineCap
attribute.
General code for adding “line cap” to a line using HTML5Canvas is:
how to “line cap” property using html5canvas
HTML5Canvas line Cap property can be set with “lineCap"
attribute.
General code for adding line cap to a line using HTML5Canvas is:
context.lineCap =value-of-cap;
Line cap attributes of html5 Canvas line can take three values. These three values arebutt
,round
and square
.
Shapes of three line cap for for html5 Canvas line
color: #333333; font: large/1.556 ‘Libertine’, Palatino, ‘Palatino Linotype’, ‘Book Antiqua’, Georgia, ‘Times New Roman’, serif; word-spacing: 0.1em; padding-left: 10px;”>