Code Sketch


penguin in basic code
By: Aasthajaiswal
Category: Art
clear()
setSpeed(fast)
setFillColor(black)
zoom(1.6)
//showAxes()
setPosition(-110, -10)
setPenColor(black)
forward(100)
right(160,60)
right(52,10)
left(32)
forward(100)
right(150,60)
right(22,10)
forward(20)
right(34)
hop(110)
setFillColor(white)
setPenColor(white)
circle(17)
right(55)
hop(45)
left(75)
circle(17)
left()
hop(8)
right()
setFillColor(black)
circle(10)
left()
hop(39)
right()
hop(-4)
circle(10)
right()
hop(25)
//nose
left(269)
hop(25)
right(79)
setFillColor(yellow)
setPenColor(yellow)
forward(24)
left(123)
forward(20)
left(106)
forward(20)
right(140)
hop(40)
right()
hop(14)
setFillColor(white)
setPenColor(white)
circle(40)
hop(20)
left()
hop(80)
def sq(){
    setFillColor(yellow)
    setPenColor(yellow)
    repeat(4){
   forward(20)
   right()
}
}
sq()
left()
hop(50)
right()
sq()
setPenColor(white)
setFillColor(black)
left()
hop(38)
left()
hop(120)
left()
left(22)
forward(25)
left(120)
forward(25)
right(158)
hop(125)
right(180)
right(22)
forward(25)
right(120)
forward(25)