from SimpleCV import Image,Display,DrawingLayer,Color
from time import time,sleep
myDisplay = Display()
pcDuinoImage = Image("pcDuino.jpg")
myDrawingLayer = DrawingLayer((pcDuinoImage.width,pcDuinoImage.height))
myDrawingLayer.setFontSize(50)
myDrawingLayer.setFontItalic(True)
myDrawingLayer.text("MiNi PC + Arduino !",(10,20),color=Color.BLACK)
pcDuinoImage.addDrawingLayer(myDrawingLayer)
pcDuinoImage.applyLayers()
myDrawingLayer.setFontSize(50)
myDrawingLayer.setFontItalic(True)
myDrawingLayer.text("pcDuino",(70,70),color=Color.BLACK)
pcDuinoImage.addDrawingLayer(myDrawingLayer)
pcDuinoImage.applyLayers()
myDrawingLayer.rectangle ((430,570),(600,600),color=Color.RED,filled=True)
myDrawingLayer.setFontSize(30)
myDrawingLayer.setFontItalic(False)
myDrawingLayer.text("www.pcduino.org",(430,570),color=Color.WHITE)
pcDuinoImage.addDrawingLayer(myDrawingLayer)
pcDuinoImage.applyLayers()
pcDuinoImage.save(myDisplay)
while not myDisplay.isDone() :
sleep(0.2)