Just watch...
I used Desmos to create circles with inscribed regular polygons. Then I connected all the diagonals. Then I copied the image to Scratch and made multiple costumes of the same image. Than I used the art tool to fill in the polygonal spaces made by the diagonals. I used different colors for each costume.