Implementing smooth sketching and drawing on the element

前端 未结 7 503
粉色の甜心
粉色の甜心 2021-01-29 20:20

I am trying to create a drawing area with canvas. I am having trouble with making the lines look smooth when drawing curves and I also have changing line thickness in my algorit

7条回答
  •  离开以前
    2021-01-29 21:12

    Important!

    I collected some needed parts and attached here all of that!

    
    
    
    

    Just copy all and paste it to your code. And don't forget to click the voting!

提交回复
热议问题