I googled, and saw that one technique for this is layering multiple frames with different palettes and a delay of 0.