WC code is likely not (legally) available, but Wolfenstein and Doom both did similar palette tricks and are documented in the Black Books for each - https://fabiensanglard.net/three_books_update/index.html
Code for those is available.
Oh rad! Thanks for the heads up. I'll do a post-dev comparison to see what I land on and what was done here.
Oh rad! Thanks for the heads up. I'll do a post-dev comparison to see what I land on and what was done here.