Code Sketch


Priyanka & Yogita (Him Jyoti School)
By: Manish Mall
cleari() 
setSpeed(superFast)
setBackground(Color(0, 0, 0))
setPenColor(white)

hop(-200)
left()
hop(400)
def pin(){
right(45)
repeat(4) {
forward(50)
right()
}
}
repeat(8){
    pin()
    right()
    hop()
}
hop(-20)
hop(-740)
right()
hop(430)
repeat(8){
    pin()
    right()
    hop()
}
hop(-500) 
left()
hop(70)
right()
forward(560)
left()
forward(600)
left()
forward(560)
hop(-560)
left()
hop(50)
right()
forward(200)
hop(-200)
left()
hop(50)
right()
forward(150)
hop(-150)
left()
hop(50)
right()
forward(100)
hop(-100)
left()
hop(50)
right()
forward(50)
hop(-50)
left()
hop(400)
left(180)
hop(50)
left()
forward(200)
hop(-200)
right()
hop(50)
left()
forward(150)
hop(-150)
right()
hop(50)
left()
forward(100)
hop(-100)
right()
hop(50)
left()
forward(50)
right()
left()
hop(-50)
right()
hop(25)
left()
hop(80)
def  oo(){
repeat(180){
    forward(0.5)
    left(1)
}
}
oo()
left()
forward(58)
hop(-30)
right()
hop(80)
left()
hop(-65)
left()
hop(180)
oo()
left()
forward(58)
hop(-30)
left()
hop(-180)
right()
hop(350)
hop(25)
left()
hop(130)
oo()
left()
forward(58)
hop(100)
left()
hop(100)
oo()
left()
forward(58)
hop(-580)
left()
hop(310)
right(90)
hop(600)
right()
hop(400)
left()
hop(80)
setPenThickness(8)
forward(50)
right()
right()
hop(50)
left()
forward(80)
right()
forward(50)
left()
left()
hop(50)
left()
hop(40)
right()
forward(50)
right()
forward(40)
right()
right()
hop(40)
left()
hop(50)
forward(50)
right()
forward(40)
right()
right()
hop(40)
left()
left(45)
hop(30)
setPenThickness(7)
repeat(360){
    forward(1)
    right(20)
}
right(45)
hop(60)
setPenThickness(7)
repeat(360){
    forward(1)
    right(20)
}
right()
hop(40)
setPenThickness(7)
repeat(360){
    forward(1)
    right(20)
}
right()
hop(55)
left()
setPenThickness(7)
repeat(360){
    forward(1)
    right(20)
}
right()
hop(800)
right()
hop(395)
left()
hop(5)
setPenThickness(8)
forward(50)
right()
right()
hop(50)
left()
forward(80)
right()
forward(50)
left()
left()
hop(50)
left()
hop(40)
right()
forward(50)
right()
forward(40)
right()
right()
hop(40)
left()
hop(50)
forward(50)
right()
forward(40)
right()
right()
hop(40)
left()
left(45)
hop(30)
setPenThickness(7)
repeat(360){
    forward(1)
    right(20)
}
right(45)
hop(60)
setPenThickness(7)
repeat(360){
    forward(1)
    right(20)
}
right()
hop(40)
setPenThickness(7)
repeat(360){
    forward(1)
    right(20)
}
right()
hop(55)
left()
setPenThickness(7)
repeat(360){
    forward(1)
    right(20)
}
hop(-400)
right()
right()
setPenColor(red)
setPenThickness(3)
setPosition(0, -50)
right(30)
forward(70)
left(100,60)
forward(15)
hop(10)
right()
hop(10)
setPenThickness(5)
right(43)
right(23,40)
right(34,40)
right(30,20)
forward(5)
right(220)
hop(20)
right(313)
left(23,30)
left(34,35)
left(30,20)
forward(5)
left(60)
hop(170)
right(29)
hop(10)
setPenThickness(3)
forward(5)
left(40,30)
left(89,30)
left(91,20)
forward(10)
left(10)
hop(110)
right()
hop(15)
left(96)
setPenColor(Color(242, 210, 1))
setPenThickness(3)
forward(5)
left(54,30)
left(22,20)
right(182)
left()
hop(15)
right()
setPenThickness(1)
right(54,30)
right(22,20)
right(5)
forward(10)
right(140)
hop(70)
right(39)
hop(-14)
setPenThickness(3)
forward(20)
left(90,30)
left(30,40)
left(120,10)
right(180)
left(120,14)
left(22,10)
right(130)
left(120,9)
left(97,9)
right(180)
forward(12)
left(90,10)
left(60,20)
left(30,30)
forward(10)
right(29)
hop(69)
right(22)
setPenColor(Color(242, 210, 1))
forward(15)
right(80,10)
forward(2)
right(69,1)
right(26)
forward(22)
right(88,8)
forward(5)
right()
forward(5)
right(110)
hop(100)
setPenColor(Color(242, 210, 1))
setPenThickness(3)
forward(10)
left(19,40)
left(23,30)
left(23,40)
right(30,2)
left(32,30)
forward(10)
left(22,50)
left(30,40)
forward(10)
left(34,20)
forward(10)
left(3,10)
forward(2)
left(50)
hop(275)
right(35)
hop(-10)
setPenThickness(5)
setPenColor(red)
setFillColor(red)
forward(20)
right(113)
forward(25)
right(129)
forward(25)
left()
hop(300)
right(179)
hop(400)
left()
hop(5)
hop(100)
left()
hop(35)
    right()
    def kho(){
    repeat(45){
    
    setPenColor(Color(117, 8, 27, 84))
   
    right(45)
forward(25)
right()
    }
    }
    kho()//> def kho(): Unit
hop(150)
repeat(45){
    setPenColor(Color(117, 8, 27, 84))
    right(45)
forward(25)
right()
    }          
  left()
  hop(323) 
left()
hop(40)
 repeat(45){ 
   setPenColor(Color(117, 8, 27, 84))
    right(45)
forward(25)
right()
    }          
hop(-150)
kho()
hop(500)
left()
hop(200)
left()
left()
setPenColor(white)
   setPenFontSize(25)
write(" MAY YOUR LIFE BLOOM WITH JOY AND")
hop(-23)
setPenColor(Color(196, 186, 193))
write(" YOU HAVE A GRAND CELEBRATION ")
hop(-23)
setPenColor(pink)
write(" ON THIS DIWALI")
hop(160)
setPenColor(Color(194, 192, 3, 61))
setFillColor(Color(223, 11, 11, 53))
repeat(360){
    forward(0.2)
    right(1)
}
left()
hop(100)
setPenColor(Color(194, 192, 3, 61))
setFillColor(Color(223, 11, 11, 53))
repeat(360){
    forward(0.2)
    right(1)
}
left()
left()
hop(160)
left()
hop(90)    
setPenColor(Color(194, 192, 3, 61))
setFillColor(Color(223, 11, 11, 53))
repeat(360){
    forward(0.2)
    right(1)
}
setFillColor(Color(223, 11, 11, 152))
left()
hop(-700)
right()
hop(-50)
right(180)
right(180,100)
right(140)
left(110,61)
savePosHe()
    right(120)
    left(110,61)
    restorePosHe()
    left(75)
    setPenColor(Color(194, 192, 3, 61))

setFillColor(Color(255, 159, 0))
    
    right(90,50)
    right()
    right(90,50) 
    left(45)
    hop(-140)
    left()
    hop(-800)
right()
hop(100)
right(90)
setPenColor(Color(194, 192, 3, 61))

setFillColor(Color(223, 11, 11, 132))
    
right()
hop(-50)
right(180)
right(180,100)
right(140)
left(110,61)
savePosHe()
    right(120)
    left(110,61)
    restorePosHe()
    left(75)
    setPenColor(Color(194, 192, 3, 61))

setFillColor(Color(255, 159, 0))
    right(90,50)
    right()
    right(90,50) 
    left(45)
    hop(-140)
    left()
   hop(335)
   left()
   hop(9)
        left(45)
    setPenColor(Color(194, 192, 3, 61))

setFillColor(Color(219, 84, 50))
    right(90,20)
    right()
    right(90,20) 
    left(45)

left()
hop(250)
left()
hop(50)
  left(45)
    setPenColor(Color(194, 192, 3, 61))

setFillColor(Color(219, 84, 50))
    right(90,20)
    right()
    right(90,20) 
    left(45)   
    hop(100)
    left()
    hop(100)
    left()
     left(45)
    setPenColor(Color(194, 192, 3, 61))

setFillColor(Color(219, 84, 50))
    right(90,20)
    right()
    right(90,20) 
    left(45)
  left()
  hop(300)
  setPenColor(Color(194, 192, 3, 61))
setFillColor(Color(223, 11, 11, 53))
repeat(360){
    forward(0.2)
    right(1)
}   
left()
hop(100)
setPenColor(Color(194, 192, 3, 61))
setFillColor(Color(223, 11, 11, 53))
repeat(360){
    forward(0.2)
    right(1)
} 
left()
hop(570)
right() 
setPenColor(Color(255, 175, 214))
 
 setPenFontSize(35)
 hop(45)
write("Diwali")
hop(30)
setPenColor(Color(33, 168, 217))
write("Shubh")
left()
hop(180)
left()
hop(200)
left(45)
setPenColor(Color(194, 192, 3, 61))

setFillColor(Color(219, 84, 50))
    right(90,20)
    right()
    right(90,20) 
    left(45)
  left()
  hop(-400)
  left()
  hop(100)
  setPenColor(Color(194, 192, 3, 61))
setFillColor(Color(223, 11, 11, 53))
repeat(360){
    forward(0.2)
    right(1)
} 
left()
hop(90)
setPenColor(Color(194, 192, 3, 61))
setFillColor(Color(223, 11, 11, 53))
repeat(360){
    forward(0.2)
    right(1)
} 
left()