very basic code editing!

This commit is contained in:
dylan
2023-05-05 11:52:08 -07:00
parent 6b90d883e9
commit 1e91232bd6
9 changed files with 233 additions and 22 deletions

View File

@ -4,6 +4,7 @@ import {
gl,
} from "./deps.ts";
export {mainloop} from "./deps.ts";
import { palette } from "./colors.ts";
const window = createWindow({
title: "Faux",
@ -113,16 +114,6 @@ const px = (x: number, y: number) => {
];
}
const palette: Array<[number, number, number, number]> = [
[0, 0, 0, 0],
[1, 1, 1, 1],
[0, 0, 0, 1],
[1, 0, 0, 1],
[1, 1, 0, 1],
[0, 1, 0, 1],
[0, 0, 1, 1],
];
const paletteX6 = palette.map(rgba => [...rgba, ...rgba, ...rgba, ...rgba, ...rgba, ...rgba]);
const c = (n: number) => {