def wall(x, y, scale): t.tracer(False) t.begin_fill() t.color('Beige') bsl.buildingblock(x - 1000 * scale, y - 1000 * scale, 2000 * scale, 2000 * scale) t.end_fill()
def window(x, y, scale): t.tracer(False) t.begin_fill() t.color('White') bsl.buildingblock(x + 150 * scale, y - 75 * scale, 250 * scale, 250 * scale) t.end_fill()
def painting( x, y, scale ): t.tracer(False) t.begin_fill() t.color('Brown') bsl.buildingblock(x-400*scale, y-75*scale, 250*scale, 250*scale) t.end_fill() bsl.myscene2(-275, 50,.10) t.setheading(0)
def painting2(x, y, scale): t.tracer(False) t.begin_fill() t.color('Brown') bsl.buildingblock(x + 150 * scale, y - 75 * scale, 250 * scale, 250 * scale) t.end_fill() bsl.myscene1(275, 50, .10) t.setheading(0)
def windowpane( x, y, scale ): t.begin_fill() t.color('Gray') bsl.buildingblock(x+150*scale, y+40*scale, 250*scale, 10*scale) t.end_fill() t.begin_fill() t.color('Gray') bsl.buildingblock(x+275*scale, y-75*scale, 10*scale, 250*scale) t.end_fill()
def windowpane(x, y, scale): t.begin_fill() t.color('Gray') bsl.buildingblock(x + 150 * scale, y + 40 * scale, 250 * scale, 10 * scale) t.end_fill() t.begin_fill() t.color('Gray') bsl.buildingblock(x + 275 * scale, y - 75 * scale, 10 * scale, 250 * scale) t.end_fill()
def outsidewindow( x, y, scale): t.begin_fill() t.color('Green') bsl.buildingblock(x+150*scale, y-75*scale, 250*scale, 100*scale) t.end_fill() t.begin_fill() t.color('Light Blue') bsl.buildingblock(x+150*scale, y+25*scale, 250*scale, 150*scale) t.end_fill() bsl.star(x+350*scale, y+125*scale, .25*scale, 'True', 'orange')
def outsidewindow(x, y, scale): t.begin_fill() t.color('Green') bsl.buildingblock(x + 150 * scale, y - 75 * scale, 250 * scale, 100 * scale) t.end_fill() t.begin_fill() t.color('Light Blue') bsl.buildingblock(x + 150 * scale, y + 25 * scale, 250 * scale, 150 * scale) t.end_fill() bsl.star(x + 350 * scale, y + 125 * scale, .25 * scale, 'True', 'orange')
def outsidewindowmorning( x, y, scale): t.begin_fill() t.color('Green') bsl.buildingblock(x+150*scale, y-75*scale, 250*scale, 100*scale) t.end_fill() t.begin_fill() t.color('Light Blue') bsl.buildingblock(x+150*scale, y+25*scale, 250*scale, 150*scale) t.end_fill() bsl.star(x+250*scale, y+70*scale, .6*scale, 'True', 'Red') bsl.cloud(x+175*scale, y+125*scale, 0.25*scale, 'white') bsl.cloud(x+200*scale, y+75*scale, 0.3*scale, 'white') bsl.cloud(x+350*scale, y+120*scale, 0.3*scale, 'white') bsl.cloud(x+275*scale, y+100*scale, 0.4*scale, 'white') bsl.cloud(x+350*scale, y+50*scale, 0.25*scale, 'white')
def outsidewindowmorning(x, y, scale): t.begin_fill() t.color('Green') bsl.buildingblock(x + 150 * scale, y - 75 * scale, 250 * scale, 100 * scale) t.end_fill() t.begin_fill() t.color('Light Blue') bsl.buildingblock(x + 150 * scale, y + 25 * scale, 250 * scale, 150 * scale) t.end_fill() bsl.star(x + 250 * scale, y + 70 * scale, .6 * scale, 'True', 'Red') bsl.cloud(x + 175 * scale, y + 125 * scale, 0.25 * scale, 'white') bsl.cloud(x + 200 * scale, y + 75 * scale, 0.3 * scale, 'white') bsl.cloud(x + 350 * scale, y + 120 * scale, 0.3 * scale, 'white') bsl.cloud(x + 275 * scale, y + 100 * scale, 0.4 * scale, 'white') bsl.cloud(x + 350 * scale, y + 50 * scale, 0.25 * scale, 'white')
def outsidewindownight( x, y, scale): t.begin_fill() t.color('Dark Blue') bsl.buildingblock(x+150*scale, y-75*scale, 250*scale, 100*scale) t.end_fill() t.begin_fill() t.color('Black') bsl.buildingblock(x+150*scale, y+25*scale, 250*scale, 150*scale) t.end_fill() bsl.star(x+350*scale, y+125*scale, .10*scale, 'True', 'yellow') bsl.star(x+250*scale, y+75*scale, .10*scale, 'True', 'yellow') bsl.star(x+275*scale, y+100*scale, .10*scale, 'True', 'yellow') bsl.star(x+300*scale, y+125*scale, .10*scale, 'True', 'yellow') bsl.star(x+250*scale, y+125*scale, .10*scale, 'True', 'white') bsl.star(x+350*scale, y+65*scale, .10*scale, 'True', 'white') bsl.star(x+300*scale, y+75*scale, .10*scale, 'True', 'yellow') t.begin_fill() t.color('Gray') bsl.goto(x+200*scale, y+75*scale) t.circle(40) t.end_fill()
def outsidewindownight(x, y, scale): t.begin_fill() t.color('Dark Blue') bsl.buildingblock(x + 150 * scale, y - 75 * scale, 250 * scale, 100 * scale) t.end_fill() t.begin_fill() t.color('Black') bsl.buildingblock(x + 150 * scale, y + 25 * scale, 250 * scale, 150 * scale) t.end_fill() bsl.star(x + 350 * scale, y + 125 * scale, .10 * scale, 'True', 'yellow') bsl.star(x + 250 * scale, y + 75 * scale, .10 * scale, 'True', 'yellow') bsl.star(x + 275 * scale, y + 100 * scale, .10 * scale, 'True', 'yellow') bsl.star(x + 300 * scale, y + 125 * scale, .10 * scale, 'True', 'yellow') bsl.star(x + 250 * scale, y + 125 * scale, .10 * scale, 'True', 'white') bsl.star(x + 350 * scale, y + 65 * scale, .10 * scale, 'True', 'white') bsl.star(x + 300 * scale, y + 75 * scale, .10 * scale, 'True', 'yellow') t.begin_fill() t.color('Gray') bsl.goto(x + 200 * scale, y + 75 * scale) t.circle(40) t.end_fill()
def window( x, y, scale ): t.tracer(False) t.begin_fill() t.color('White') bsl.buildingblock(x+150*scale, y-75*scale, 250*scale, 250*scale) t.end_fill()
def floor( x, y, scale ): t.tracer(False) position1 = [-600, -500, -400, -300, -200, -100, 0, 100, 200, 300, 400, 500] position2 = [-550, -450, -350, -250, -150, -50, 50, 150, 250, 350, 450, 550] for i in range(len(position1)): t.begin_fill() t.color('Black') bsl.buildingblock(x+position1[i]*scale, y-300*scale, 50*scale, 50*scale) t.end_fill() for i in range(len(position1)): t.begin_fill() t.color('Gold') bsl.buildingblock(x+position2[i]*scale, y-300*scale, 50*scale, 50*scale) t.end_fill() for i in range(len(position1)): t.begin_fill() t.color('Gold') bsl.buildingblock(x+position1[i]*scale, y-250*scale, 50*scale, 50*scale) t.end_fill() for i in range(len(position1)): t.begin_fill() t.color('Black') bsl.buildingblock(x+position2[i]*scale, y-250*scale, 50*scale, 50*scale) t.end_fill() for i in range(len(position1)): t.begin_fill() t.color('Black') bsl.buildingblock(x+position1[i]*scale, y-200*scale, 50*scale, 50*scale) t.end_fill() for i in range(len(position1)): t.begin_fill() t.color('Gold') bsl.buildingblock(x+position2[i]*scale, y-200*scale, 50*scale, 50*scale) t.end_fill()
def wall( x, y, scale ): t.tracer(False) t.begin_fill() t.color('Beige') bsl.buildingblock(x-1000*scale, y-1000*scale, 2000*scale, 2000*scale) t.end_fill()
def floor(x, y, scale): t.tracer(False) position1 = [ -600, -500, -400, -300, -200, -100, 0, 100, 200, 300, 400, 500 ] position2 = [ -550, -450, -350, -250, -150, -50, 50, 150, 250, 350, 450, 550 ] for i in range(len(position1)): t.begin_fill() t.color('Black') bsl.buildingblock(x + position1[i] * scale, y - 300 * scale, 50 * scale, 50 * scale) t.end_fill() for i in range(len(position1)): t.begin_fill() t.color('Gold') bsl.buildingblock(x + position2[i] * scale, y - 300 * scale, 50 * scale, 50 * scale) t.end_fill() for i in range(len(position1)): t.begin_fill() t.color('Gold') bsl.buildingblock(x + position1[i] * scale, y - 250 * scale, 50 * scale, 50 * scale) t.end_fill() for i in range(len(position1)): t.begin_fill() t.color('Black') bsl.buildingblock(x + position2[i] * scale, y - 250 * scale, 50 * scale, 50 * scale) t.end_fill() for i in range(len(position1)): t.begin_fill() t.color('Black') bsl.buildingblock(x + position1[i] * scale, y - 200 * scale, 50 * scale, 50 * scale) t.end_fill() for i in range(len(position1)): t.begin_fill() t.color('Gold') bsl.buildingblock(x + position2[i] * scale, y - 200 * scale, 50 * scale, 50 * scale) t.end_fill()
def invasion( x, y, scale ): t.begin_fill() t.color('Purple') bsl.buildingblock(x+150*scale, y-75*scale, 250*scale, 100*scale) t.end_fill() t.begin_fill() t.color('Red') bsl.buildingblock(x+150*scale, y+25*scale, 250*scale, 150*scale) t.end_fill() bsl.star(x+350*scale, y+125*scale, .25*scale, 'True', 'Black') bsl.goto(200*scale, 100*scale) t.begin_fill() t.color("Yellow") t.circle(25) t.end_fill() bsl.goto(200*scale, 110*scale) t.begin_fill() t.color("White") t.circle(15) t.end_fill() bsl.goto(200*scale, 120*scale) t.begin_fill() t.color("Orange") t.circle(5) t.end_fill() t.setheading(-30) t.begin_fill() t.color('Green') bsl.buildingblock(x+200*scale, y+95*scale, 20*scale, 5*scale) t.end_fill() t.setheading(0) t.setheading(-30) t.begin_fill() t.color('Green') bsl.buildingblock(x+225*scale, y+75*scale, 20*scale, 5*scale) t.end_fill() t.setheading(0) t.setheading(-30) t.begin_fill() t.color('Green') bsl.buildingblock(x+230*scale, y+110*scale, 20*scale, 5*scale) t.end_fill() t.setheading(0) t.setheading(-30) t.begin_fill() t.color('Green') bsl.buildingblock(x+250*scale, y+100*scale, 20*scale, 5*scale) t.end_fill() t.setheading(0)
def invasion(x, y, scale): t.begin_fill() t.color('Purple') bsl.buildingblock(x + 150 * scale, y - 75 * scale, 250 * scale, 100 * scale) t.end_fill() t.begin_fill() t.color('Red') bsl.buildingblock(x + 150 * scale, y + 25 * scale, 250 * scale, 150 * scale) t.end_fill() bsl.star(x + 350 * scale, y + 125 * scale, .25 * scale, 'True', 'Black') bsl.goto(200 * scale, 100 * scale) t.begin_fill() t.color("Yellow") t.circle(25) t.end_fill() bsl.goto(200 * scale, 110 * scale) t.begin_fill() t.color("White") t.circle(15) t.end_fill() bsl.goto(200 * scale, 120 * scale) t.begin_fill() t.color("Orange") t.circle(5) t.end_fill() t.setheading(-30) t.begin_fill() t.color('Green') bsl.buildingblock(x + 200 * scale, y + 95 * scale, 20 * scale, 5 * scale) t.end_fill() t.setheading(0) t.setheading(-30) t.begin_fill() t.color('Green') bsl.buildingblock(x + 225 * scale, y + 75 * scale, 20 * scale, 5 * scale) t.end_fill() t.setheading(0) t.setheading(-30) t.begin_fill() t.color('Green') bsl.buildingblock(x + 230 * scale, y + 110 * scale, 20 * scale, 5 * scale) t.end_fill() t.setheading(0) t.setheading(-30) t.begin_fill() t.color('Green') bsl.buildingblock(x + 250 * scale, y + 100 * scale, 20 * scale, 5 * scale) t.end_fill() t.setheading(0)