¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
How to fit the canvas to the page?
How do I make the canvas occupie all the screen of a device?
1 Respuesta
0
I don't know, also maybe canvas.width = window.innerWidth;
canvas.height = window.innerHeight;