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

后端 未结 3 2143
抹茶落季
抹茶落季 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:25

    Leeching off Marius's answer:

    
    
    
    
    
    
    
    
    
    
    
    Beta
    Omega
    
    
    

    alt text

    SVG can be drawn client side with javascript, since it's just DOM elements. And, going forward, it is hardware accelerated.

提交回复
热议问题