more fixes

This commit is contained in:
Peli 2020-02-04 16:58:12 -08:00
parent 7e7414ad4e
commit f53010763a
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
"newLine": "LF", "newLine": "LF",
"sourceMap": false, "sourceMap": false,
"lib": ["dom", "dom.iterable", "scripthost", "es6"], "lib": ["dom", "dom.iterable", "scripthost", "es6"],
"types": ["jquery", "bluebird"], "types": ["bluebird"],
"typeRoots": ["../node_modules/@types"] "typeRoots": ["../node_modules/@types"]
} }
} }

View File

@ -128,7 +128,7 @@ namespace pxsim.visuals {
this.canvas.appendChild(pixel.el); this.canvas.appendChild(pixel.el);
} }
let color = colors[i]; let color = colors[i];
pixel.setRgb(color); pixel.setRgb([color[0], color[1], color[2]]);
} }
//show the canvas if it's hidden //show the canvas if it's hidden