Canvas Tutorials

Canvas Methods and Properties

HTML canvas lineWidth Property

HTML canvas lineWidth Property



The lineWidth property is used to sets or returns the current line width, in pixels.




Its syntax is:- context.lineWidth = number;


Further Explanation:-


Value Description
number The current line width, in pixels

Code Explanation

All Tutorials related to Canvas Methods and Properties

All Sections related to Canvas