Changed colordict and anim to work with color palettes