I have made a simple canvas code. But if I increase the height/width of the canvas the shapes changes their scale and behave abnormally.
For example :
I have a line
This should create a straight line.
Now if I increase the width of the canvas and re run the code the line gets longer.