caleb531 / jcanvas

A jQuery plugin that makes the HTML5 canvas easy to work with.
https://projects.calebevans.me/jcanvas/
MIT License
626 stars 192 forks source link

Why jСanvas draws poor quality circle on small sizes of canvas? #331

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello, thanks for jCanvas, I ran into such a problem: poor quality on canvas of small size

Comparison with konvajs: https://jsfiddle.net/zye92L8p/2/

This can be somehow corrected? What am I doing wrong?

caleb531 commented 6 years ago

@iElizium I'm guessing you are using a device with a high-density display, such as a MacBook Pro with Retina Display. To support high-DPI devices, use the detectPixelRatio function. See the docs:

https://projects.calebevans.me/jcanvas/docs/detectPixelRatio/