pub fn find_nearest_color(pixel: Rgb, palette: &[Rgb]) -> usize
Find the index of the nearest color in a palette using Euclidean distance.