From 8048e4a7cfcc1de9ecce8d7b98c2e11423243adf Mon Sep 17 00:00:00 2001 From: Thuc Chi Do Date: Mon, 11 Aug 2025 06:16:32 -0400 Subject: [PATCH] print color --- source/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/main.c b/source/main.c index 47083ff..b54a15a 100644 --- a/source/main.c +++ b/source/main.c @@ -91,7 +91,7 @@ void getColor(void *fb, int row, int col) { uint8_t r = fb_8[v]; uint8_t g = fb_8[v+1]; uint8_t b = fb_8[v+2]; - printf("\n---RGB2---%u %u %u\n", r, g, b); + printf("\n---RGB--- %u %u %u\n", r, g, b); } int main(int argc, char* argv[]) @@ -135,9 +135,11 @@ int main(int argc, char* argv[]) takePicture(buf); // break; // break in order to return to hbmenu } - + gfxSet3D(false); writePicToFBuff(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), buf, 0, 0); + getColor(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), 100, 120); + gfxFlushBuffers(); gspWaitForVBlank(); gfxSwapBuffers();