Properly Resizing your Canvas
The fix for this is pretty straightforward. Don’t use CSS for specifying your canvas’s size. Instead, set the width
and height
attribute values on your canvas element directly:
Access this course and 1400+ top-rated courses and projects.