Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Instead of having so many lines like this to define the skin color...
- case SKINCOLOR_TEAL:
- // 5 color ramp
- for (i = 0; i < SKIN_RAMP_LENGTH; i++)
- {
- if (5*i/16 == 0)
- dest_colormap[starttranscolor + i] = 0xf7;
- else
- dest_colormap[starttranscolor + i] = (UINT8)(skinbasecolors[color - 1] + (5*i/SKIN_RAMP_LENGTH) - 1);
- }
- break;
- Couldn't we have a table instead that looks more along the lines of this?
- 247,247,247,247,247,220,220,220,221,221,221,222,222,222,223,223,223
- or if it needs to be in hex:
- 0xf7,0xf7,0xf7,0xf7,0xf7,0xdc,0xdc,0xdc,0xdd,0xdd,0xdd,0xde,0xde,0xde,0xdf,0xdf,0xdf
Advertisement
Add Comment
Please, Sign In to add comment