Code Sketch


HAPPY RAKSHABANDHAN
By: Aasthajaiswal
Category: Art
clear
setPosition(-390, -100)
setSpeed(superFast)
setPenThickness(10)
setPenColor(yellow)
setFillColor(red)
setBackground(Color(204, 0, 204))
zoom(0.4)
setPenThickness(2)
setFillColor(red)

repeat(36){
    right(50)
        repeat(8) {
        forward(22)
        right(36)
        
    }
}

def curve(){
    repeat(180){
        right(1)
        forward(0.5)
    }
}

left
hop(-7)    
setPenColor(white)
dot(20)
hop(-100)
left(-122)
hop(110)
dot(20)
hop(-100)
left(-122)
hop(110)
dot(20)
hop(-100)
left(-60)
hop(110)
dot(20)
hop(-89)
left(37)
hop(90)
dot(20)
hop(-100)
left(-158)
hop(110)
dot(20)
hop(-100)
left(-143)
hop(115)
dot(20)
hop(-100)
left(-126)
hop(110)
dot(20)
hop(-100)
left(-120)
hop(115)
dot(20)
hop(-100)
left(65)
hop(100)
dot(20)
hop(-100)
left(-125)
hop(110)
dot(20)
hop(-100)
left(-30)
hop(105)
dot(20)
hop(-105)
right(120)
hop(145)
right(16)

setPenThickness(10)
setPenColor(yellow)
curve()
right()
hop(32)
setPenColor(red)
dot(15)
right()
hop(45)
setPenThickness(25)
forward(250)
setPenColor(white)
setPenThickness(15)
setFillColor(white)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-40)
right()
hop(30)
right(87)
hop(255)
setFillColor(red)
setPenThickness(10)
setPenColor(yellow)
left(0)
curve()
right()
hop(31)
setPenColor(red)
dot(25)
right()
hop(48)
setPenThickness(25)
forward(250)
setPenColor(white)
setPenThickness(15)
setFillColor(white)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-25)
circle(1)
hop(-40)
hop(300)
setFillColor(color(190, 11, 147))
setPenThickness(5)
setPenColor(white)
setHeading(270)
savePosHe()
forward(100)
right(45,50)
circle(10)
restorePosHe()
setHeading(250)
savePosHe()
forward(70)
right(45,50)
circle(10)
restorePosHe()
setHeading(230)
savePosHe()
forward(50)
right(45,50)
circle(10)
restorePosHe()
left(82.5)
hop(880)

right(-150)
hop(490)
left()
hop(120)
setPenFontSize(70)
setPenColor(white)
setHeading(90)
setPenFont(Font("Cambria", 70))
        // write with Cambria font
write("HAPPY RAKSHA BANDHAN")
// aastha 8