System.arraycopy(textAnimPal, 0, out, 128, TitleScreen .getAnimPaletteSize());
    public static Color[] getAnimatedPalette(int num, int i)    {        if (i >= 0            && i < TitleScreen.NUM_CHAR_ANIM_PALETTES                + TitleScreen.NUM_ANIM_PALETTES)        {            if (num == 0)            {                /*                 * Overwrite the "normal" colors with the correct animated                 * palettes.                 */                Color[] textAnimPal, out;                if (i < TitleScreen.NUM_CHAR_ANIM_PALETTES)                {                    out = new Color[titleScreens[0].getSubPaletteSize()];                    for (int j = 0; j < out.length; j++)                    {                        out[j] = new Color(0, 0, 0);                    }                    textAnimPal = titleScreens[1].getAnimPalette(i);                }                else                {                    out = titleScreens[num].getSubPal(0);                    textAnimPal = titleScreens[1]                        .getAnimPalette(TitleScreen.NUM_CHAR_ANIM_PALETTES - 1);                    Color[] highlightAnimPal = titleScreens[0].getAnimPalette(i                        - TitleScreen.NUM_CHAR_ANIM_PALETTES);                    System.arraycopy(highlightAnimPal, 0, out, 112, TitleScreen                        .getAnimPaletteSize());                }                System.arraycopy(textAnimPal, 0, out, 128, TitleScreen                    .getAnimPaletteSize());                return out;            }            else            {                return titleScreens[num].getAnimPalette(Math.min(i,                    TitleScreen.NUM_CHAR_ANIM_PALETTES - 1));            }        }        /*         * Else: A animated palette was not selected. The original Color[] is         * fine.         */        return titleScreens[num].getSubPal(0);    }