Code Sketch
Lady Bug
Category: Art
clear
setSpeed(superFast)
showGrid()
showAxes()
setBackgroundH(blue,white)
//eye1
def eye1Out = Picture{
ellipse(10,25)
}
eye1Out
.thatsTranslated(-25,180)
.thatsFilledWith(black)
.draw
def eye1In = Picture{
ellipse(10,10)
}
eye1In
.thatsTranslated(-24,165)
.thatsFilledWith(white)
.draw
//eye2
def eye2Out = Picture{
ellipse(10,25)
}
eye2Out
.thatsTranslated(25,180)
.thatsFilledWith(black)
.draw
def eye2In = Picture{
ellipse(10,10)
}
eye2In
.thatsTranslated(24,165)
.thatsFilledWith(white)
.draw
def head = Picture{
circle(100)
}
head
.thatsTranslated(100,70)
.thatsFilledWith(black)
.draw
def body = Picture{
circle(150)
}
body
.thatsTranslated(150,-50)
.thatsFilledWith(black)
.draw
def wing1 = Picture{
ellipse(70,160)
}
wing1
.thatsRotated(145)
.thatsTranslated(-150,5)
.thatsFilledWith(red)
.draw
def wing2 = Picture{
ellipse(70,160)
}
wing2
.thatsRotated(35)
.thatsTranslated(150,5)
.thatsFilledWith(red)
.draw
def dot1 = Picture{
circle(20)
}
dot1
.thatsTranslated(-30,50)
.thatsFilledWith(black)
.draw
def dot2 = Picture{
circle(20)
}
dot2
.thatsTranslated(-90,0)
.thatsFilledWith(black)
.draw
def dot3 = Picture{
circle(20)
}
dot3
.thatsTranslated(-30,-10)
.thatsFilledWith(black)
.draw
def dot4 = Picture{
circle(20)
}
dot4
.thatsTranslated(-140,-50)
.thatsFilledWith(black)
.draw
def dot5 = Picture{
circle(20)
}
dot5
.thatsTranslated(-140,-50)
.thatsFilledWith(black)
.draw
def dot6 = Picture{
circle(20)
}
dot5
.thatsTranslated(-67,-50)
.thatsFilledWith(black)
.draw
def dot7 = Picture{
circle(20)
}
dot7
.thatsTranslated(-113,-100)
.thatsFilledWith(black)
.draw
def dot11 = Picture{
circle(20)
}
dot11
.thatsTranslated(50,50)
.thatsFilledWith(black)
.draw
def dot22 = Picture{
circle(20)
}
dot22
.thatsTranslated(120,0)
.thatsFilledWith(black)
.draw
def dot33 = Picture{
circle(20)
}
dot33
.thatsTranslated(60,-10)
.thatsFilledWith(black)
.draw
def dot44 = Picture{
circle(20)
}
dot44
.thatsTranslated(180,-50)
.thatsFilledWith(black)
.draw
def dot55 = Picture{
circle(20)
}
dot55
.thatsTranslated(180,-50)
.thatsFilledWith(black)
.draw
def dot66 = Picture{
circle(20)
}
dot66
.thatsTranslated(87,-50)
.thatsFilledWith(black)
.draw
def dot77 = Picture{
circle(20)
}
dot77
.thatsTranslated(143,-100)
.thatsFilledWith(black)
.draw
def sun2 = Picture{
circle(120)
}
sun2
.thatsTranslated(420,200)
.thatsFilledWith(color(255, 217, 28))
.thatsStrokeColored(noColor)
.draw
def sun = Picture{
circle(100)
}
sun
.thatsTranslated(400,200)
.thatsFilledWith(yellow)
.thatsStrokeColored(noColor)
.draw
def sun3 = Picture{
circle(80)
}
sun3
.thatsTranslated(380,200)
.thatsFilledWith(color(255, 255, 102))
.thatsStrokeColored(noColor)
.draw