How to generate four rectangular patter in LED 32*32 adafruit

I am using adafruit 32*32 LED matrix with arduino uno and I wanted to power up the four corner the of the LED matrix one by one shown in attachment if some one knows the programme to do the same then it will be very much helpful to me.

I have tried but i am not getting the perfect pattern what i need.

I also have attached the programme so please let me if there is any mistake.

thank you.

illumination.pdf (161 KB)

You stand a better chance of getting help if you post your code as described in the "how to use this forum-please read" sticky. Pictures of code is next to useless.

What does that code do that is not right?