I want to draw a picture as shown below. There are many rectangles. Each rectangle can be filled with a 1/N (N=1-8) ratio of colors.
I've taken the dumbest approach before. That is, I draw a rectangle of the corresponding size, and then cover it. For example if I want to fill 1/2 of the color. I covered it with a rectangle that is only half the area. But is there any way to do it quickly? I want to draw using Adobe Illustrator.