Getclosestcol

From EDukeWiki
Revision as of 02:20, 30 January 2018 by Jblade (talk | contribs) (Created page with "'''getclosestcol''' <RETURN> <color> <limit> Finds the closest palette index given. <color> is encoded the same as PROJ_FLASH_COLOR <limit> is the index of the last...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getclosestcol <RETURN> <color> <limit>

Finds the closest palette index given.

<color> is encoded the same as PROJ_FLASH_COLOR

<limit> is the index of the last palette color that should be considered. Use 255 for the whole palette, 254 to exclude the transparent color, 239 to exclude Duke 3D's fullbrights, etc.