Code Sketch


26 jan
By: Mulvery Convent School
Category: Art
//HAPPY REPUBLIC DAY TO EVERYONE 
cleari()
setSpeed(fast )
//showAxes()
setBackground(Color(151, 204, 255, 181))
setPosition(-60, -120)
setPenColor(blue)
setFillColor(Color(142, 156, 246, 226))
setPenThickness(3)
repeat(2) {
    forward(20)
    right(115,6)
    left(25)
    forward(130)
    right(115,6)
    left(25)
    forward(3)
}
hop(-8)
right()
hop(13)
left()
setPenColor(yellow)
setPenThickness(3)
 def rec {
    repeat(3) {
forward(32)
right()
forward(3)
right
}
 } //> def rec: Unit
 rec
 left
 hop(10)
 right
 rec
 right()
 hop(50)
 setPenColor(Color(153, 255, 204,210))
 def rec2 {
    repeat(3) {
forward(15)
right()
forward(3)
right
}
 } //> def rec2: Unit
 left()
 hop(5)
 rec2

    left()
 hop(10)
 right()
 rec2
hop(15)
right()
hop(12)
right
rec2
 hop(-5)
 right()
 hop(20)
 left()
 setPenColor(yellow)
 rec
left()
hop(10)
right()
rec
hop(37)
left()

setPenColor(Color(66, 66, 14))
setFillColor(Color(66, 66, 14))
setPenThickness(6)
forward(95)
setPenThickness(2)
right()
forward(5)
setPenColor(yellow)
setPenThickness(3)
right()
forward(95)
left()
hop(1)
setPenColor(Color(66, 66, 14))
setPenThickness(3)
left(75,4)
left(13)
forward(37)
right(103)
left(53,29)
right(36)
forward(90)
left(210,4)
right(30)
forward(87)
right(30)
left(53,30)
right(113)
forward(42)
left()
forward(3)
right(202)
hop(110)
setFillColor(Color(153, 204, 255, 181))
setPenThickness(4)
left(110)
forward(90)
right(48)
forward(10)
right(180)
hop(13)
right(45)
hop(40)
left()
hop(50)
right()
 def equality {
    setPenColor(yellow)
setPenThickness(3)
setFillColor(yellow)
right(180,30)
right()
hop(10)
left(58)
setPenColor(black)
setFillColor(Color(151, 204, 255, 181))
setPenThickness(2)
forward(50)
right(130)
forward(47)
right(180)
hop(47)
left(157)
forward(42)
 } //> def equality: Unit
 equality
 right(180)
hop(43)
right(82)
hop(63)
setPenColor(Color(66, 66, 14))
setPenThickness(4)
forward(100)
left(32)
forward(10)
right(150)
hop(50)
left(30)
equality
left(2)
hop(125)
setFillColor(Color(46, 46, 6, 219))
repeat(4){
    forward(12)

  left()
    forward(50)
    left
}
hop(12)
forward(2)
right()
setFillColor(Color(253, 253, 108, 219))
forward(12)
left(193,5)
right(12)
forward(65)
left(163,5)
left(13)
forward(12)
right(200)
hop(50)
setFillColor(Color(46, 46, 6, 219))
right(200)
repeat(3) {
forward(60)
right()
forward(7)
right()
}
left
hop(-20)
setFillColor(Color(253, 253, 108, 219))
repeat(3) {
forward(30)
left()
forward(17)
left
}
right(270)
setFillColor(Color(46, 46, 6, 219))
rec2
left()
hop(25)
right(90)
rec2
right(135)
hop(170)
right(2)
repeat(3) {
forward(50)
right()
forward(70)
right
}
setPenColor(Color(255, 255, 102))
hop(5)
right()
hop(16)
right(180)
setPenFont(Font("Cambria", 6))
write("CONSTITUTION")
right()
hop(15)
right()
hop(10)
right(180)
write("OF")
left()
hop(5)
right()
hop(-10)
write("INDIA")
hop(-80)
setPenThickness(6)
setPenColor(black)
setPenFont(Font("Cambria", 12))
write("Republic Day is the day when the Republic ofIndia marks and ")
hop(-15)
write("celebrates the date on which the Constitution of India came into effect on 26 January ")
right(45)
hop(540)
left(50)
 def shape {
    repeat(24){
setPenColor(green)
setPenThickness(6)
forward(6)
setPenThickness(10)
forward(6)
setPenColor(white)
setPenThickness(10)
forward(6)
setPenThickness(7)
forward(6)
setPenColor(Color(247, 102, 50))
setPenThickness(19)
forward(6)
setPenThickness(10)
forward(6)
hop(-30)
right(70)
hop(7)
    }
} //> def shape: Unit
shape
right(30)
hop(560)
right()
hop(36)
shape
left(150)
hop(130)
left(86)
   setPenFont(Font("Cambria", 35))
   write("HAPPY REPUBLIC DAY")
   left()
   hop(40)
   right()
   hop(-60)
   setPenColor(black)
   setPenFont(Font("Cambria", 11))
   write(" let's take a moment time to remember the many heroes who sacrifice for our nation")
   hop(-14)
write("and also remember the day when our constitution came into effect.")
//WISHING U ALL A VERY HAPPY REPUBLIC DAY