开发者

Html5 Canvas drawing problem

开发者 https://www.devze.com 2023-03-22 22:32 出处:网络
The trouble is - when I mousedown, then mousemove(about 1-2px), the point, which I draw disappears. It is because I clear context each mousemove, but I dont know how to fix开发者_运维百科 it.Not quite

The trouble is - when I mousedown, then mousemove(about 1-2px), the point, which I draw disappears. It is because I clear context each mousemove, but I dont know how to fix开发者_运维百科 it.


Not quite sure what the problem is, but I think the problem is that rounding is causing your new line to not be a full pixel and thus empty. Could this be the problem? If so the solution is to make the move just a little bigger if it is small.

0

精彩评论

暂无评论...
验证码 换一张
取 消