Given a color, try to find an associated palette entry for it. This will try to find the lowest numbered palette entry. The palette entry might be a higher numbered color than the terminal can support, if it does not support a 256 color palette.
a valid Color
the size of the palette
the palette Color closest matching c
See Implementation
Given a color, try to find an associated palette entry for it. This will try to find the lowest numbered palette entry. The palette entry might be a higher numbered color than the terminal can support, if it does not support a 256 color palette.