How to optimize canvas circle for retina devices?

不打扰是莪最后的温柔 提交于 2019-12-11 10:13:47

问题


Please tell me how to make canvas look sharp for retina devices? I would be grateful if you show in my example - fiddle

var canvas = document.getElementById('timer');
var context = canvas.getContext('2d');
var x = canvas.width / 2;
var y = canvas.height / 2;
var radius = 105;
var endPercent = 100;
var curPerc = 0;
var counterClockwise = false;
var circ = Math.PI * 2;
var quart = Math.PI / 2;

来源:https://stackoverflow.com/questions/29027477/how-to-optimize-canvas-circle-for-retina-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!