Searches for the color on the table and returns the color index if successful.
* If the tolerance is 0 search for the exact match in the palette else search for the
* first color that fits in the tolerance range.
* See also \ref colorutl.
*
* \verbatim im.PaletteFindColor(pal: imPalette, color: lightuserdata, tol: number) -> index: number [in Lua 5] \endverbatim
* \ingroup palette
Searches for the color on the table and returns the color index if successful. * If the tolerance is 0 search for the exact match in the palette else search for the * first color that fits in the tolerance range. * See also \ref colorutl. * * \verbatim im.PaletteFindColor(pal: imPalette, color: lightuserdata, tol: number) -> index: number [in Lua 5] \endverbatim * \ingroup palette