thezerobit<p>"We can solve any problem by introducing an extra level of indirection."</p><p><a href="https://doomwiki.org/wiki/COLORMAP" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">doomwiki.org/wiki/COLORMAP</span><span class="invisible"></span></a></p><p>If you see the dynamic light levels within DOOM and wonder how they did that all within a 256 color palette. There is a single 256 color palette that all graphics are drawn in, but the COLORMAP maps the same values to a different set of values within the same palette to simulate lower light levels.</p><p>Gonna steal this but also implement "brighter" direction.</p><p><a href="https://anticapitalist.party/tags/DOOM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DOOM</span></a> <a href="https://anticapitalist.party/tags/RetroDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RetroDev</span></a> <a href="https://anticapitalist.party/tags/paletteTricks" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>paletteTricks</span></a> <a href="https://anticapitalist.party/tags/VGA" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VGA</span></a></p>