• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

15-bit Hexadecimal Colours?

Boonzeet

Pokémon Secrets of the Ages Developer
  • 188
    Posts
    16
    Years
    Hi, I'm currently working on changing the messages colours and have tried changing the 4-digit hex colours for text and text-shadow in PokemonMessages.

    As far as I am aware to turn a 15-bit RGB into hexadecimal for colour conversion it is the formula (R*1024 + G*32 + B) then hex conversion, but this does not produce the expected colour in-game.

    How are the hexadecimal colour values for these colours obtained from regular colour values?


    EDIT: Also, I am needing to use the full-size back-facing battlers. I have all the animated gifs and am going to batch resize them to the 2x size needed, but the transparency doesn't show in Pokémon essentials. How can I make these animated gifs work transparent for the game still?
     
    Last edited:
    You've got your conversion formula backwards. def Rgb16ToColor will show that it should be (B*1024 + G*32 + R). Of course, that's after you divide the separate RGB values by 8, to make them each go between 0-31 rather than 0-255.
     
    Back
    Top