Sm64 Color Code Generator May 2026

struct MarioState gMarioState = { .shirtColor = { 102, 0, 153, 255 }, // RGBA .pantsColor = { 0, 0, 255, 255 }, }; When you compile, the build system automatically converts these RGBA values into the necessary low-level RGB565 codes. Modern SM64 Color Code Generators now offer an "Export to Decomp" button that generates the C struct for you. Even with a generator, things can go wrong. Here is what to look out for:

Decide what you want to recolor. Mario’s overalls (blue), his shirt (red), his skin, or his cap. In the SM64 decompilation source code, these are often found in src/game/geo_mario.c or texture files. Sm64 Color Code Generator

If you choose an RGB color that is too dark (below R=10, G=10, B=10), the N64’s lighting model may treat it as black due to the reduced 5-bit precision. Always preview your colors in a high-luminance environment. struct MarioState gMarioState = {