rendered paste body'''
Created on Mar 30, 2012
@author: aluchko
'''
import turtle
worldLowerLeft = (0,0)
worldUpperRight = (100,100)
turtle.mode("world")
turtle.setworldcoordinates(worldLowerLeft[0],worldLowerLeft[1],
worldUpperRight[0],worldUpperRight[1])
rect = turtle.Turtle()
rect.shapesize(1, 3)
rect.color('black')
rect.penup()
rect.shape("square")
rect.setheading(90) # set the turtle to point up
rect.goto(50, 50)
(width, height, _) = rect.shapesize()
rc = rect.pos()
ul = turtle.Turtle()
ul.resizemode("auto")
ul.color("orange")
ul.goto(rc[0]-width, rc[1]+height)
ur = turtle.Turtle()
ur.resizemode("noresize")
ur.color("red")
ur.goto(rc[0]+width, rc[1]+height)
ll = turtle.Turtle()
ll.resizemode("user")
ll.color("blue")
ll.goto(rc[0]-width, rc[1]-height)
lr = turtle.Turtle()
lr.color("green")
lr.goto(rc[0]+width, rc[1]-height)
turtle.mainloop()