You can draw a Sierpinski Carpet with Chaos Game too. Read the first Chaos Game project first to understand what Chaos Game is. In this project, you start with a
Use colorsys library’s hsv_to_rgb() function and loop to draw the following square that gradually transitions hue value from 0 to the left to hue value 1 on the right.