Working with cards and vblanking

This commit is contained in:
2022-05-08 20:11:52 -07:00
parent 4ff43893d0
commit a6dbca6a90
20 changed files with 665 additions and 84 deletions

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();