Working with cards and vblanking

This commit is contained in:
YourWishes committed 2022-05-08 20:11:52 -07:00
1 parent 4ff43893d0
commit a6dbca6a90
20 files changed
+665 -84

No files matched your search

+2 -2
View File
@@ -10,8 +10,8 @@ const {
const getPixelValue = (pixel) => {
if(pixel.g === 188) return 0;
if(pixel.g === 172) return 1;
if(pixel.g === 98 || pixel.g === 145) return 2;
if(pixel.g === 172 || pixel.g === 145) return 1;
if(pixel.g === 98) return 2;
if(pixel.g === 56) return 3;
if(pixel.a === 0) return 0;
throw new Error();