ga:remap(gb)
Fill gb with a remaped version of ga, each pixel is mapped to the closest palette entry.