I made a script that draws a series of lines on the canvas, which makes it look like a sketch. There are two problems in the script. First, why is the y value twice as large as it should be? And two, why is the line a few pixels wide and gone?
I tried this on both Google Chrome and Firefox, and get the same wrong results. I understand that I can split the y value in two to fix the first problem, but this part of my question is why I should do this. I don’t need to.
source share