don't click here

Color converter

Discussion in 'Engineering & Reverse Engineering' started by XFox Prower, Sep 24, 2004.

Thread Status:
Not open for further replies.
  1. XFox Prower

    XFox Prower

    Member
    1,196
    0
    0
    x86 Assembly, Tails Search Assistant
    I created a page to convert 24-bit RRGGBB to the MD's BGR format. It takes the most signifigant bits of each color and uses them in the BGR output. The less signifigant that can't be displayed by the MD are trunctuated (in the future, rounding may be an option). There may be some color loss due to the fact that the Mega Drive uses less bits per color. The inputted and outputted colors will both be displayed side by side for comparison along with a line of code you can copy and paste into your ASM source.

    http://xfox.digibase.ca/re/tutorial/68k/tools/color.htm
     
  2. Qjimbo

    Qjimbo

    Your friendly neighbourhood lemming. Oldbie
    Nice, seems to work well. I don't have much of a use for it but for people who can't run any of the palette editing programs, or prefer hex editing, I'm sure they'll find this useful. I think there was a topic made a while back where someone wanted to convert the colors back the other way, so people might appriciate that as well.
     
  3. Sonic Hachelle-Bee

    Sonic Hachelle-Bee

    Taking a Sand Shower Tech Member
    854
    235
    43
    Lyon, France
    Sonic 2 Long Version
    That's a nice HTML file.
    This will help me making my pallets, it even works on Macintosh!
    Before, I used something called "Digital Colorimeter" to convert color values. But this is more accurrate with this HTML file. Thanks.
     
  4. Hayate

    Hayate

    Tech Member
    Timeout... :)
     
  5. XFox Prower

    XFox Prower

    Member
    1,196
    0
    0
    x86 Assembly, Tails Search Assistant
    Updates:
    • A checkbox exists for rounding RRGGBB colors up or down as influenced by the least signifigant bits before they're tructuated into the lesser BGR format.
    • You can now input a 3-digit BGR hex value to see what color it becomes. This comes in handly when you're digging through old source files and don't want to launch an emulator or graphics utility to view or recreate the palette colors.
     
  6. LOst

    LOst

    Tech Member
    4,891
    8
    18
    COOL!!!
     
  7. Sonic Hachelle-Bee

    Sonic Hachelle-Bee

    Taking a Sand Shower Tech Member
    854
    235
    43
    Lyon, France
    Sonic 2 Long Version
    Very nice!
    Thank you XFox Prower.
     
  8. Hayate

    Hayate

    Tech Member
    [offtopic]Not on topic I know but I wanted to point this out:

    You only see the pic of the three characters in the ring if you have completed the game with all characters. If, for example, you only play as Sonic and beat the game with all super emeralds, you would not get that pic.

    [/offtopic]

    I see the site's back up now, and it's rather interesting. You could make it have the output in capitals, though.
     
Thread Status:
Not open for further replies.