Update script.js
This commit is contained in:
parent
092b2a7c1f
commit
192cc73c9d
1 changed files with 2 additions and 2 deletions
|
|
@ -49,8 +49,8 @@ function placePixel(index, color) {
|
||||||
|
|
||||||
// Create the canvas
|
// Create the canvas
|
||||||
const canvasDiv = document.getElementById('canvas');
|
const canvasDiv = document.getElementById('canvas');
|
||||||
const canvasWidth = 50;
|
const canvasWidth = 100;
|
||||||
const canvasHeight = 50;
|
const canvasHeight = 100;
|
||||||
|
|
||||||
function createCanvas() {
|
function createCanvas() {
|
||||||
for (let i = 0; i < canvasWidth * canvasHeight; i++) {
|
for (let i = 0; i < canvasWidth * canvasHeight; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue