Create this image using nested for loops. Your outside loop will go row by row. Your inside loop will draw the rectangle across a single row.
You do not need setup() and draw(). Use HSB color mode.