Forget about the colours - what is happening with the
squares?
Can you write a procedure for a small square?
Four small squares?
A larger square?
Sets of four small squares in a larger square?
Look at how the pattern is built up - in that way you will know
how to break the final pattern down into more manageable
pieces.