![logo](img/logo.png)
diff --git a/nowy b/nowy deleted file mode 100644 index c32bed5..0000000 --- a/nowy +++ /dev/null @@ -1 +0,0 @@ -witam diff --git a/src/grid.js b/src/grid.js deleted file mode 100644 index 296a011..0000000 --- a/src/grid.js +++ /dev/null @@ -1,48 +0,0 @@ -const Grid = function(canvas) { - let grid = [[]]; - let ctx; - let storages = [] - - this.setCanvasSize = (canvas) => { - canvas.width = 2000; - canvas.height = 900; - } - - this.processGrid = () => { - const fact = (a, value = 1) => Array(a).fill(value, 0, a); - const cartesian = (arr1, arr2) => arr1.map(a => (a && arr2) || fact(arr2.length, 0)); - - this.grid = cartesian( - [...fact(6), 0, ...fact(6), 0, ...fact(6)], - [...fact(1), 0, ...fact(2), 0, ...fact(2), 0, ...fact(1)] - ); - } - - this.drawGrid = () => { - for (let [x, line] of this.grid.entries()) { - for (let [y, shouldRender] of line.entries()) { - if (shouldRender) { - this.neonRect(x * 100, y * 100, 100, 100); - } - } - } - } - - this.neonRect = (x, y, w, h) => { - this.ctx.strokeStyle= "#fff"; - this.ctx.lineWidth = 7; - this.ctx.strokeRect(x, y, w, h); - } - - this.addStorageCenter = (x, y) => { - this.neonRect(x * 100, y * 100, 100, 100, '#ff0000', 10); - } - - this.getStorageCenters = () => storages - - this.ctx = canvas.getContext('2d'); - this.setCanvasSize(canvas); - this.processGrid(); - this.drawGrid(); -} - diff --git a/src/img/logo.png b/src/img/logo.png new file mode 100644 index 0000000..a96489d Binary files /dev/null and b/src/img/logo.png differ diff --git a/src/index.html b/src/index.html index f727066..2742d86 100644 --- a/src/index.html +++ b/src/index.html @@ -4,16 +4,51 @@ + + + + - + + + + + -