HTML5 Canvas fit to window

JavascriptWeb DevelopmentFront End Scripts

You need to use CSS to fit canvas to windows.

#box {
   overflow: hidden;
}
#canvas {
   position: absolute;
   top: 0px;
   left: 0px;
}
raja
Published on 06-Apr-2018 13:46:14
Advertisements