raphaelretina-displaypaperjshdpi

Does Paper.js work with Retina or other high definition displays?


I'm trying to decide between Raphaël and Paper.js. I've chosen Paper.js, however, now I'm reading in several places it doesn't work well with Retina or high definition displays. At least it used to not. Raphaël seems to naturally work perfect as it's SVG based. Have the Retina issues been fixed with Paper.js or were there never really issues? Are there easy workarounds?


Solution

  • High DPI support was set to off by default and you had had to activate it because there were some issues. Now most of them should be resolved so the latest paper.js has HiDPI set to on by default.

    If you are still using an older version you can turn it on like so:

    <canvas id="canvas" hidpi="on"></canvas>
    

    but this would not be needed with the latest build.