Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started