+ 2

canvas quality

how to increase the quality of canvas ? Because it is not have enough quality to display sensitive animations

25th Apr 2019, 2:00 AM
Roopesh
Roopesh - avatar
5 Antworten
+ 5
my idea will be to do this in JS var W=canvas.width=innerWidth*4; var H=canvas.height*4; this way quality it will become 4 times the aspect ratio of window ... (make sure u use Variables W and H in your entire code for collisions) then in CSS use canvas width:100% to make sure it dont overflow from viewport width :)
25th Apr 2019, 7:25 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 5
Very_Hard(asm & js & c++ & java & py & (@Hard)) but i think he asked for quality .. not smooth animation 😁..
25th Apr 2019, 7:26 AM
Prashanth Kumar
Prashanth Kumar - avatar
25th Apr 2019, 6:20 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
25th Apr 2019, 10:29 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 3
Prashanth Kumar you are right I asked for quality . But keyboard resulted it as quantity
25th Apr 2019, 11:32 AM
Roopesh
Roopesh - avatar