HTML5 canvas stroke() thick and fuzzy

后端 未结 7 1735
野性不改
野性不改 2020-12-09 08:04

I\'m trying to allow the user to draw a rectangle on the canvas (like a selection box). I\'m getting some ridiculous results, but then I noticed that even just trying the co

相关标签:
7条回答
  • 2020-12-09 08:51

    You haven't indicated canvas size in pixels, so it is scaled up. It is 300x150 here. Try setting the width, height

    0 讨论(0)
提交回复
热议问题