Dithering is used in computer graphics to create additional colors and shades from an existing palette by interspersing pixels of different colors.