Drawing GOOD LOOKING (like in Flash) lines on canvas (HTML5) - possible?

后端 未结 3 2150
抹茶落季
抹茶落季 2020-12-10 14:01

Is there any way to draw a line using javascript and the canvas with \"better\" antialiasing, like Flash does?

I know the Math.floor(coord)+0.5 trick to get an exact

3条回答
  •  醉酒成梦
    2020-12-10 14:36

    Instead of using the 2D drawing API, you can use the SVG vector elements. You would have to implement your own api to do it, but that way you will get beautiful lines, like those in flash. The SVG-edit is an example of what you can do with SVN in browser.

提交回复
热议问题