Code Sketch


Teddy Bear
By: Arsh Khan
cleari()
setSpeed(fast)

def face = Picture.ellipse(90, 90).withTranslation(0, 180)
def body = Picture.ellipse(90,90)
def ear1 = Picture.ellipse(30,30).withTranslation(-95, 255)
def ear2 = Picture.ellipse(30,30).withTranslation(90, 260)
def eye1 = Picture.ellipse(20,20).withTranslation(30, 210)
def eye2 = Picture.ellipse(20,20).withTranslation(-30, 210)
def hand1 = Picture.ellipse(30,30).withTranslation(100, 65)
def hand2 = Picture.ellipse(30,30).withTranslation(-100, 65)
def hand3 = Picture.ellipse(40,40).withTranslation(75, -105)
def hand4 = Picture.ellipse(40,40).withTranslation(-75, -105)
def smile = Picture.ellipse(20,10).withTranslation(0, 140)
def nose = Picture.ellipse(10,10).withTranslation(0, 170)
def ear3 = Picture.ellipse(20,18).withTranslation(-90, 245)
def ear4 = Picture.ellipse(20,18).withTranslation(85, 250)
def eye3 = Picture.ellipse(10,8).withTranslation(30, 199)
def eye4 = Picture.ellipse(10,8).withTranslation(-30, 199)
def stomach = Picture.ellipse(60,60)
def pattern1 = Picture.ellipse(20,20).withTranslation(100,65)
def pattern2 = Picture.ellipse(20,20).withTranslation(-100, 65)
def pattern3 = Picture.ellipse(30,30).withTranslation(75, -105)
def pattern4 = Picture.ellipse(30,30).withTranslation(-75, -105)
def s = Picture.ellipse(10,5).withTranslation(0, 135)

body.draw
face.draw
ear1.draw
ear2.draw
hand1.draw
hand2.draw
eye1.draw
eye2.draw
smile.draw
nose.draw
hand3.draw
hand4.draw
ear3.draw
ear4.draw
eye3.draw
eye4.draw
stomach.draw
pattern1.draw
pattern2.draw
pattern3.draw
pattern4.draw
s.draw