parent
fe80bf0448
commit
6de40658a0
@ -1 +1,13 @@ |
|||||||
document.body.innerHTML = "Hello world!"; |
const WIDTH = 4; //64;
|
||||||
|
const HEIGHT = 4; //32;
|
||||||
|
|
||||||
|
for(let y = 0; y < HEIGHT; y++) { |
||||||
|
const row = document.createElement('div'); |
||||||
|
row.className = 'row'; |
||||||
|
for(let x = 0; x < WIDTH; x++) { |
||||||
|
const pixel = document.createElement('div'); |
||||||
|
pixel.className = 'pixel'; |
||||||
|
row.appendChild(pixel); |
||||||
|
} |
||||||
|
document.body.appendChild(row); |
||||||
|
} |
Loading…
Reference in new issue