Пример #1
0
	def draw(self):
		motherboard.setPenRadius(.002)
		motherboard.setPenColor(self.color)
		motherboard.filledRectangle(self.xpos, self.ypos, self.width, self.height)
		motherboard.setPenColor(motherboard.DARK_GRAY)
		motherboard.setFontFamily("Arial")
		motherboard.setFontSize(20)
		motherboard.text(self.xpos, self.ypos, self.name)
		motherboard.rectangle(self.xpos, self.ypos, self.width, self.height)
Пример #2
0
#-------------------------------------------------------------------

time = "20:00"
motherboard.text(largeX, largeY - 145, time + " min")
motherboard.text(smallX, smallY - 120, time + " min")
motherboard.text(circleX, circleY - 130, time + " min")

#-------------------------------------------------------------------
# Order for large rectangle
# 
#-------------------------------------------------------------------
ordertext = "Chicken"
orderX = largeX - 49
orderY = largeY + 89
motherboard.setPenColor(motherboard.CUP_GREEN)
motherboard.filledRectangle(orderX, orderY, 49, 29)
motherboard.setPenColor(motherboard.DARK_GRAY)
motherboard.text(orderX, orderY, ordertext)

ordertext = "Beef"
orderX = largeX - 49
orderY = largeY + 29
motherboard.setPenColor(motherboard.CUP_RED)
motherboard.filledRectangle(orderX, orderY, 49, 29)
motherboard.setPenColor(motherboard.DARK_GRAY)
motherboard.text(orderX, orderY, ordertext)

ordertext = "Beef"
orderX = largeX - 49
orderY = largeY - 31
motherboard.setPenColor(motherboard.CUP_RED)