5 Answers
New Answerconsole.log(canv.height) and you'll see 150 you cannot enlarge canvas size by setting CSS width and height to 100%, that will only stretch the canvas. You can enlarge canvas size with JS canvas canv.height = (new value) canv.width = (new value)
You can use canvas at full screen. canv.width = window.innerWidth; canv.height = window.innerHeight;
Ok thanks to all :) I'm kinda upset now because I need the canvas to be 100% full screen...
Learn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message