Smooth animation with an 8x8 RGB LED matrix

these are the important lines.

   for (byte y=0;y<8;y++) {
        for(byte x=0;x<8;x++) {

And please modify your post and put the code between [code]...[/code] tags
it is now unreadable

This looks really cool. I have a matrix I built myself (10x8) that I run off of a Mega. Any chance there's a way to change the code to work with that?

I really want to do stuff like this on my setup, but I can only find codes for dedicated controllers or the Teensy boards, nothing that will work on the Mega. I'm not that great at coding, so there's almost no chance that I will ever be able to write a whole new program myself, and I have no budget to go out and get new hardware. Any help would be appreciated.