colorList = ["red","orange","yellow","green","blue","purple"]
verticalPos = (20, 30, 40, 50, 60,70)
loopList = range(0,6)

for i in loopList:
        rectangle = Rectangle(x=50, y=verticalPos[i], height=10, width=80, color = colorList[i])

Rainbow across screen

by lapura

Created 4 years, 8 months ago.