Languages
[Edit]
EN

JavaScript - how to set line width (thickness / size) drawing on canvas element?

2 points
Created by:
Kevin
797

Simple solution:

 

Using JavaScript it is possible to draw line in following way.

1. lineTo method example

Edit

Merged questions

Edit
  1. JavaScript - canvas line with lineWidth property example
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

JavaScript - HTML5 canvas tutorial

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join