I am learning how to use a canvas, and I wanted to create a drawing application. I can easily draw lines and shapes, but I cannot figure out how to change the line width from a given size to each other with the same line.
I would like to do something like:
Draw a line from point (0, 1) to point (10, 10) and size from 10 to 5
Is it possible?
source
share