Users browsing this thread: 1 Guest(s)
Multicolor Chocobos

#10
Posts: 3,971
Threads: 279
Thanks Received: 238
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(07-29-2015, 07:37 PM)Tenkarider Wrote: After i was doing math manually for a while(to convert RGB into decimal), when i realized at a certain point that i did an error, i got sick of that waste of time and i built a C++ program... to do that much faster that me Objection!

How about a program that converts the color into SNES palette format? Tongue

Edit: Use something similar to this:

Code:
//Converts an RGBTRIPLE to an integer equivalent used by the ROM
void getIntPal(RGBTRIPLE color, BYTE *c1, BYTE *c2)
{
    *c1 = color.rgbtRed / 8;
    *c1 += ((color.rgbtGreen / 8) & 0x07) << 5;
    *c2 = ((color.rgbtGreen / 8) & 0x18) >> 3;
    *c2 += (color.rgbtBlue / 8) << 2;
}
  Find
Quote  



Messages In This Thread
Multicolor Chocobos - by m06 - 07-28-2015, 08:29 PM
RE: Multicolor Chocobos - by madsiur - 07-28-2015, 08:33 PM
RE: Multicolor Chocobos - by m06 - 07-28-2015, 08:49 PM
RE: Multicolor Chocobos - by Tenkarider - 07-29-2015, 04:48 AM
RE: Multicolor Chocobos - by m06 - 07-29-2015, 01:51 PM
RE: Multicolor Chocobos - by JWhiteLXXXIX - 07-29-2015, 05:11 PM
RE: Multicolor Chocobos - by Tenkarider - 07-29-2015, 07:37 PM
RE: Multicolor Chocobos - by Gi Nattak - 07-29-2015, 08:19 PM
RE: Multicolor Chocobos - by m06 - 07-30-2015, 06:08 AM
RE: Multicolor Chocobos - by madsiur - 07-30-2015, 04:38 PM
RE: Multicolor Chocobos - by Tenkarider - 07-30-2015, 08:38 PM
RE: Multicolor Chocobos - by madsiur - 07-30-2015, 08:51 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite