Working with cards and vblanking
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user