Do you want to delete “Building Burj Khalifa” permanently? You will not be able to undo this action.
# Blue sky background Rectangle(color=['#144290','#75b5f7']) # loop over a list of numbers from 0 to 6 # In every loop, create a new rectangle # Rectangle size will get smaller every time, hence the "15 minus the loop number" part # Height will always be the same. # Y position will be less every time, hence the "95 minus the loop number" part loopList = range(0, 7) for loopNumber in loopList: with animation(duration=1): Rectangle(color='lightgray', width=(15-loopNumber*2), height=10, y=(95-loopNumber*10))
Created 5 years, 4 months ago.