How to determine an ARGB color from samples?

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
Sir Robin
Posts: 392
Joined: Wed Dec 22, 2021 7:02 pm
Graphics Processor: Intel (Modern GZDoom)
Location: Medellin, Colombia

How to determine an ARGB color from samples?

Post by Sir Robin »

So I'm ripping graphics out of an old game, early 90s 8-bit era, same as Doom. Unlike Doom it has transparencies. How the handled it was to have 6 magic colors. When the engine went to draw one of these colors, it would instead do a lookup on the pixel under where it was drawing and use a translation palette to decide the color to draw.

So I've lined up these translation palettes next to the original palettes. What's the best way to come up with a 32-bit ARGB color code that will give me the same effect for each of these 6 transparencies?

Return to “Assets (and other stuff)”