commit 445d143c13eaf9ec69ebb87e2b94b20865898310 Author: Thibault Blanc Beyne Date: Mon Aug 20 15:57:15 2018 +0200 Initial commit diff --git a/index.html b/index.html new file mode 100644 index 0000000..5fbda65 --- /dev/null +++ b/index.html @@ -0,0 +1,22 @@ + + + + Escalator + + + + + + + + + diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..1415856 --- /dev/null +++ b/js/main.js @@ -0,0 +1,13 @@ +"use strict"; +let canvas = document.getElementById('canvas'); +canvas.width = window.innerWidth; +canvas.height = window.innerHeight; + +console.log(canvas.width, canvas.height); + +let context = canvas.getContext("2d"); +context.fillStyle = "rgb(0.0, 0.0, 0.0)"; +context.rect(canvas.width / 4, canvas.height / 4, canvas.width / 2, canvas.height / 2); +context.stroke(); + +console.log(canvas);