Code Sketch


AGRIMA , AADRIKA
By: Mulvery Convent School
Category: Art
clear()
setSpeed(fast)
//showAxes()
setPosition(0, -270) 
setBackground(darkGray)
setPenColor(black)
setFillColor(Color(153,255,153))
setPenThickness(5)
// making map of india 
left(30)
forward(50)
right(10)
forward(150)
right(10)
forward(70)
left(120)
forward(50)
right(70)
forward(10)
right(10)
forward(20)
right(100)
forward(20)
left(120)
forward(20)
right(40)
forward(10)
right(50)
forward(20)
right(90)
forward(20)
left(10)
forward(5)
left(100)
forward(40)
right(10)
forward(10)
right(80)
forward(20)
left(70)
forward(70)
right(10)
forward(20)
left(30)
forward(10)
left(30)
forward(10)
left(70)
forward(20)
right(30)
forward(10)
right(60)
forward(20)
left(30)
forward(10)
left(60)
forward(10)
right(30)
forward(10)
right(30)
forward(5)
right(60)
forward(10) 
right(60)
forward(10)
left()
forward(10)
right()
forward(20)
right(40)
forward(30)
left(10)
forward(10)
left(70)
forward(20)
right(20)
forward(10)
right(20)
forward(10)
right(90)
forward(10)
left(10)
forward(10)
left(10)
forward(10)
right(10)
forward(20)
left(10)
forward(20)
left(20)
forward(20)
left(50)
forward(20)
right(120)
forward(20)
left(50)
forward(20)
left(20)
forward(50)
left(20)
forward(20)
left(20)
forward()
left(80)
forward(10)
right(120)
forward(20)
left(20)
forward(20)
right()
forward(10)
left()
forward(20)
left()
forward(10)
right()
forward(10)
left()
forward(20)
right(50)
forward(50)
repeat(4){
    right(20)
    forward(10)
}
right(30)
forward(10)
right(40)
forward(30)
left(50)
forward(50)
right(40)
forward(20)
left(30)
forward(10)
right(80)
forward(10)
right(60)
forward(20)
left(100)
forward(15)
right(100)
forward(30)
right(70)
forward(15)
left(30)
forward(10)
left(60)
forward(20)
left(30)
forward(20)
left(30)
forward(20)
left(50)
forward(50)
left(60) 
forward(10)
right(70) 
forward(50)
left(10)
forward(20)
right(10)
forward(100)
right(10)
forward(50)
right(10)
forward(30)
right(30)
forward(10)
right(30)
forward(15)
right(30)
forward(15)
right(19)
right(36)
hop(280)
right(172)
setPenThickness(5)
setFillColor(red.fadeOut(0.4))

repeat(19){
    forward(8)
    right(10)
}
right(80)
forward(90)
right(180)
hop(53)
right()


setFillColor(yellow)
setPenColor(yellow)
repeat(7){
    forward(5)
    right(7)
}
right(93)
repeat(7){
    forward(5)
    right(7)
}
right()
right(23)
hop(560)
// moon
setPenColor(black)
setFillColor(white)
repeat(36){
    forward(14)
    right(10)
}
left(10)
hop(100)
// making stars
setPenColor(yellow)
setFillColor(yellow)

repeat(5){
    forward(40)
    right(144)
}
right(150)
hop(250)

repeat(5){
    forward(40)
    right(144)
}

hop(185)
repeat(5){
    forward(40)
    right(144)
}

hop(140)
repeat(5){
    forward(40)
    right(144)
}
repeat(2){
right(15)
hop(150)
repeat(5){
    forward(40)
    right(144)
}
}
left(44)
hop(180)
repeat(5){
    forward(40)
    right(144)
}
right(185)
hop(909)
right(109)
hop(-49)
// making Chandrayaan 3
setPenColor(black)
setFillColor(white)
repeat(2){
    forward(160)
    right()
    forward(39)
    right()
}

setFillColor(Color(102, 255, 255))
repeat(4){
    forward(39)
    right
}
right()
hop(10)
left()
hop(72)
setPenFontSize(23)
write("O")
hop(25)
write("R")
hop(25)
write("S")
right()
hop(5)
left()
hop(25)
write("I")
left()
hop(15)
right()
hop(14)
repeat(7){
    forward(8)
    right(7)
}
right(89)
repeat(7){
    forward(8)
    right(7)
}
hop(140)
left()
hop(17)
left(97)

repeat(2){
    setFillColor(white)
    forward(160)
    right()
    forward(45)
    right()
}
setFillColor(black)
right(143)
forward(36)
left(104)
forward(36)
right(128)
hop(20)
left(168)
setFillColor(white)

repeat(2){
    forward(160)
    right()
    forward(39)
    right()
}

setFillColor(Color(102, 255, 255))
repeat(4){
    forward(39)
    right
}
right()
hop(13)
left()
hop(65)
write("A")
hop(22)
write("I")
hop(22)
write("D")
hop(22)
write("N")
hop(22)
write("I")
left()
hop(14)
right()
hop(8)
repeat(7){
    forward(8)
    right(7)
}
right(89)
repeat(7){
    forward(8)
    right(7)
}
right()
hop(85)
right(84)
hop(10)
setFillColor(black)
repeat(2){
    forward(15)
    right()
    forward(45)
    right
}
hop(15)
setFillColor(Color(102, 255, 255))
repeat(7){
    forward(8)
    right(7)
}
right(84)
repeat(7){
    forward(8)
    right(7)
}
right(180)
hop(10)
left()
hop(13)
setPenColor(Color(0, 153, 51))
setPenThickness(7)
forward(20)

right()
hop(6)
right()
setPenColor(white)
forward(20)
left()
hop(6)
left()
setPenColor(Color(255, 102, 0))
forward(20)
left(87)
hop(220)
left(5)
setPenThickness(2)
setPenColor(black)
setFillColor(black)
repeat(4) {
    forward(23)
    right
    
}
left()
hop(90)
right()
repeat(4) {
    forward(23)
    right
}
right(143)
hop(240)
right(63)
hop(60)
left(30)
right()
// making roover
setPenColor(black)
setFillColor(black)
repeat(2) {
    
repeat(19){
    forward(1)
    right(10)
}
left(10)
forward(60)
}
right(180)
hop(56)
right(180)
left(180)
setFillColor(yellow)
repeat(2){
repeat(19){
    forward(1)
    right(10)
}
left(10)
forward(50)
}

right(180)
hop(15)
right()
hop(20)
repeat(36){
    forward(1.5)
    right(10)
}
left()
hop(40)
right()
repeat(36){
    forward(1.5)
    right(10)
}
right(125)
hop(50)
right()
forward(25)
repeat(36){
    forward(1)
    right(10)
}
left(73)
setFillColor(yellow)
forward(25)
right(150)
hop(-10)
repeat(18){
    forward(2)
  left(10)
}
left(80)
forward(24)

left(27)
hop(700)
// MAKING diya
setFillColor(red)
repeat(19){
    forward(5)
    right(10)
}
right(80)
forward(54)
right(180)
hop(35)
right()
setFillColor(yellow)
setPenColor(yellow)
repeat(7){
    forward(4)
    right(7)
}
right(93)
repeat(7){
    forward(4)
    right(7)
}
left()
hop(80)
left(103)
// A THOUGHT
setPenThickness(5)
setPenColor(yellow)
write("MULVERY CONVENT SCHOOL WISHES YOU ALL A VERY  HAPPY ,SAFE,POLLUTION")
right(180)
hop(30)
right(180)
write(" FREE AND ECOFRIENDLY DIWALI.")
right(180)
hop(30)
right(180)
write(" we wish good health,happiness,peace,and lights for whole world,")
right(180)
hop(30)
right(180)
write("Specially to our great scientists of ISRO who made we Indians feel proud.")
right(84)
hop(1000)
right(94)
// MAKING diya
setPenThickness(2)
setFillColor(red)
setPenColor(black)
repeat(19){
    forward(5)
    right(10)
}
right(80)
forward(54)
right(180)
hop(35)
right()
setFillColor(yellow)
setPenColor(yellow)
repeat(7){
    forward(4)
    right(7)
}
right(93)
repeat(7){
    forward(4)
    right(7)
}
left()
hop(80)
left(103)