very basic code editing!
This commit is contained in:
11
window.ts
11
window.ts
@ -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) => {
|
||||
|
Reference in New Issue
Block a user