Question: app.background = gradient ( rgb ( 2 5 , 2 5 , 1 8 0 ) , rgb ( 2 5 , 2 5 ,
app.background gradientrgb rgb start'righttop'
Star fill'maroon'
Star roundness
Rect fill'seaGreen'
pyramid Group
def drawPyramidblockHeight:
# Draw the layers leading up to the top of the pyramid.
### HINT: Using an align of 'bottom' will make it easier!
### Place your code here ###
# This variable defines the top of where the stairs should end.
stairsTop pyramid.top blockHeight
# Polygon for the staircase
Polygon stairsTop, stairsTop,
fillgradientsienna 'goldenrod', start'top' border'black'
# Chamber at the top of the pyramid
Rect stairsTop, align'bottom'
Rect pyramid.top blockHeight, fill'darkGoldenrod',
border'black', align'bottom'
Rect pyramid.top blockHeight, fill'darkGoldenrod',
border'black', align'top'
# mist
mist Group
Star opacity fill'white'
Star opacity fill'white'
Star opacity fill'white'
Star opacity fill'white'
Star opacity fill'white'
mist.width
##### Place your code above this line, code below is for testing purposes #####
# test case:
drawPyramid
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
