Code Sketch


NATIONAL TRICOLOUR FLAGE
By: Sanjay kumar
Category: Art
clear()
setSpeed(superFast)
setBackgroundH(green,orange)
hop(-200)
repeat(2) {
   setFillColor(brown)
   setPenColor(brown)
   forward(400)
    right(90)
    forward(15)
    right(90)
}
setFillColor(green)
setPenColor(green)
hop(250)
right(90)
hop(15)
left(90)
repeat(2) {
    forward(50)
    right(90)
    forward(200)
    right(90)
}
setFillColor(white)
setPenColor(white)
hop(50)
repeat(2) {
    forward(50)
    right(90)
    forward(200)
    right(90)
}
setFillColor(orange)
setPenColor(orange)
hop(50)
repeat(2) {
    forward(50)
    right(90)
    forward(200)
    right(90)
}
setFillColor(white)
setPenColor(white)
right(90)
hop(80)
right(90)
hop(25)
setPenColor(blue)
circle(20)
setPenColor(blue)
left(90)
hop(20)
repeat(24) {
    forward(20)
    hop(-20)
    right(15)
}
setFillColor(red)
setPenColor(pink)
right(90)
hop(200)
repeat(13) {
    circle(10)
    right(30)
   hop(1)
}
hop(50)
repeat(4) {
   circle(10)
   right(90)
}
right(180)
hop(100)
repeat(4) {
    circle(12)
    right(90)
}
hop(50)
right(90)
repeat(7) {
    circle(10)
    right(50)
} 
circle(10)
hop(50)
right(180)