mirror of
https://github.com/neon443/ColourCam3DS.git
synced 2026-03-11 13:26:17 +00:00
print color
This commit is contained in:
@@ -91,7 +91,7 @@ void getColor(void *fb, int row, int col) {
|
|||||||
uint8_t r = fb_8[v];
|
uint8_t r = fb_8[v];
|
||||||
uint8_t g = fb_8[v+1];
|
uint8_t g = fb_8[v+1];
|
||||||
uint8_t b = fb_8[v+2];
|
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[])
|
int main(int argc, char* argv[])
|
||||||
@@ -138,6 +138,8 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
gfxSet3D(false);
|
gfxSet3D(false);
|
||||||
writePicToFBuff(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), buf, 0, 0);
|
writePicToFBuff(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), buf, 0, 0);
|
||||||
|
getColor(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), 100, 120);
|
||||||
|
|
||||||
gfxFlushBuffers();
|
gfxFlushBuffers();
|
||||||
gspWaitForVBlank();
|
gspWaitForVBlank();
|
||||||
gfxSwapBuffers();
|
gfxSwapBuffers();
|
||||||
|
|||||||
Reference in New Issue
Block a user