The second pass is then handled by the paletteuse filter,which as you guessed from the name will use that palette to generate the finalcolor quantized stream. Its task is to find the most appropriate color in thegenerated palette to represent the input color. This is also where you willdecide which dithering method to use.