import icons
import math

Square(color = "white")

#Tower
towerWidth = 30
towerHeight = 70
towerXPosition = 50
towerYPosition = 60

#top of tower
towerPlatformWidth = (towerWidth / 1.4)
towerPlatformHeight = (towerHeight / 10)
towerPlatformXPosition = towerXPosition
towerPlatformYPosition = towerYPosition - 1.3*(towerHeight / 2)
SpireX = towerXPosition
SpireY = towerYPosition - 1.7*(towerHeight / 2)
SpireBaseLeftX = towerXPosition - (towerWidth / 2)
SpireBaseLeftY = towerYPosition - (towerHeight / 2)
SpireBaseRightX = towerXPosition + (towerWidth / 2)
SpireBaseRightY = towerYPosition - (towerHeight / 2)
SpireTopLeftX = towerPlatformXPosition - (towerPlatformWidth/2)
SpireTopLeftY = towerPlatformYPosition - (towerPlatformHeight/2)
SpireTopRightX = towerPlatformXPosition + (towerPlatformWidth/2)
SpireTopRightY = towerPlatformYPosition - (towerPlatformHeight/2)
Polygon(points=[(SpireBaseLeftX, SpireBaseLeftY), (SpireBaseRightX, SpireBaseRightY), (SpireX, SpireY)], color = "lightblue")
Rectangle(width = towerPlatformWidth, height = towerPlatformHeight, x = towerPlatformXPosition, y = towerPlatformYPosition, color = "blanchedalmond")
Polygon(points=[(SpireTopLeftX, SpireTopLeftY), (SpireTopRightX, SpireTopRightY), (SpireX, SpireY)], color = "lightblue")

#tower body
Rectangle(width = towerWidth, height = towerHeight, x = towerXPosition, y = towerYPosition, color = "blanchedalmond")

#Clock
clockWidth = towerWidth - (towerWidth * 0.3) 
clockHeight = towerHeight - (towerHeight * 0.715)
clockXPosition = towerXPosition
clockYPosition = towerYPosition -(towerHeight * 0.21)

Rectangle(width = clockWidth, height = clockHeight, x = clockXPosition, y = clockYPosition, color = "burlywood") #clock face background
Rectangle(width = clockWidth - (clockWidth * 0.5), height = clockHeight - (clockHeight * 0.25),  x = clockXPosition, y = clockYPosition, color = "black") #clock hand background
icons.Clock(width = clockWidth, height = clockHeight,  x = clockXPosition, y = clockYPosition, color = "white") #clock icon

Big Ben

by julia

Created 5 years, 9 months ago.