split stuff out

This commit is contained in:
dylan
2023-05-01 11:12:08 -07:00
parent 1781ae3bba
commit 5d742d5964
5 changed files with 345 additions and 331 deletions

View File

@ -138,6 +138,9 @@ const allPixelColors = new Float32Array(
)
export const setPixelColor = (x: number, y: number, color: number) => {
if (x < 0 || y < 0 || x > 127 || y > 127) {
return;
}
if (color !== 0) {
const col = c(color);
allPixelColors.set(col, 4*6*(128*y+x));