Code Sketch


HAPPY INDEPENDENCE DAY
By: Amol naik
Category: Art
clear()
setBackground(color(0,241,255))
setPenColor(black)
setFillColor(Color(255, 0, 0))
setSpeed(fast)
savePosHe
setHeading(-29)
left(60, 180)
setHeading(-40)
right(68, 150)
forward(300)
restorePosHe
setHeading(-140)
left(68, 150)
forward(300)
setHeading(0)
forward(90)
setPosition(85, -20)
setHeading(-100)
setFillColor(red)
setPenColor(Color(153, 0, 51))
forward(490)
setHeading(-20)
left(10, 120)
setHeading(-100)
forward(30)
setHeading(-20)
left(10, 150)
setHeading(-100)
forward(30)
setHeading(-20)
left(40, 150)
setHeading(100)
forward(30)
setHeading(20)
left(10, 150)
setHeading(100)
forward(30)
setHeading(20)
left(10, 150)
setHeading(99)
forward(470)
setPosition(0, -500)
setFillColor(yellow)
setPenColor(yellow)

setHeading(-100)
forward(50)

setHeading(-20)
left(10, 120)
setHeading(-100)
forward(30)
setHeading(-20)
left(10, 150)
setHeading(-100)
forward(30)
setHeading(-20)
left(40, 180)
setHeading(100)
forward(30)
setHeading(20)
left(10, 150)
setHeading(100)
forward(30)
setHeading(20)
left(10, 150)
setHeading(99)
setHeading(100)
forward(45)

setPosition(85, -20)
setHeading(-100)
setFillColor(red)
setPenThickness(5)
setPenColor(Color(153, 0, 51))
forward(490)
setHeading(-20)
left(10, 120)
setHeading(-100)
forward(30)
setHeading(-20)
left(10, 150)
setHeading(-100)
forward(30)
setHeading(-20)
left(40, 150)
setHeading(100)
forward(30)
setHeading(20)
left(10, 150)
setHeading(100)
forward(30)
setHeading(20)
left(10, 150)
setHeading(99)
forward(470)
setFillColor(noColor)
setPosition(40, -585)
setHeading(-15)
setPenColor(Color(51, 153, 0))
left(30, 185)
setHeading(85)
hop(35)
setHeading(19)
left(10, 120)
setHeading(89)
hop(35)
setHeading(19)
left(10, 120)
setPosition(35, -550)
setHeading(170)
right(10, 120)
setHeading(170)
hop(8)
setHeading(80)
hop(32)
setHeading(170)
right(10, 90)
setPosition(0, 0)
setPenColor(Color(255, 255, 153))
setFillColor(yellow)
setHeading(-105)
left(160, 20)
setHeading(-95)
left(160, 20)
setHeading(-85)
left(160, 20)
setHeading(-55)
left(160, 20)
setHeading(-55)
left(160, 20)
setFillColor(white)
setPenColor(Color(0, 0, 0))
setPenThickness(2)
setHeading(-149)
right(60, 185)
setPosition(89, -45)
setPenColor(Color(255, 255, 153))
setFillColor(noColor)
setHeading(-100)
savePosHe
right(50, 243)
restorePosHe
savePosHe
setHeading(-120)
right(50, 200)
restorePosHe
savePosHe
setHeading(-140)
right(50, 170)
restorePosHe

setHeading(-80)
savePosHe
left(50, 243)
restorePosHe
savePosHe
setHeading(-60)
left(50, 200)
restorePosHe
savePosHe
setHeading(-40)
left(50, 170)