Code Sketch


MERRY CHRISTMAS
By: Amol naik
Category: Programming
clear

setSpeed(superFast)
setPosition(0,0)
setPenColor(black)
setPenThickness(10)
setFillColor(cm.rgb(255, 255, 51))
setHeading(145)
    setPosition(100, 100)
    repeat(5) {
        forward(100)
        right(720 / 5)
    }
    setPenColor(noColor)
    setFillColor(cm.rgb(255, 255, 51))
setHeading(145)
    setPosition(100, 100)
    repeat(5) {
        forward(100)
        right(720 / 5)
    }

setPenThickness(2)
setPenColor(black)
hop(50)
left(93)
hop(30)
savePosHe
setFillColor(Color(144, 64, 65, 226))
right(20,1200)
setHeading(-90)
forward(35)
left(124)
savePosHe
left(25,1020)
setFillColor(Color(125, 55, 49))
setHeading(-90)
forward(170)
setHeading(180)
forward(128)
left(221)
setHeading(90)
hop(-20)
setHeading(0)
hop(170)
setHeading(-130)
setFillColor(ColorMaker.rgb(0, 108, 8))
right(90,90)
left(82,40)
right(90,90)
left(90,40)
right(90,90)
right
forward(200)
setHeading(0)
forward(170)


setHeading(90)
hop(-10)
setHeading(0)
hop(50)
setHeading(-130)
setFillColor(ColorMaker.rgb(0, 204, 51))

right(90,50)
left(82,20)
right(90,50)
left(90,20)
right(90,50)
right
forward(100)
setHeading(0)
forward(120)


setHeading(90)
hop(-10)
setHeading(0)
hop(30)

setHeading(-130)
setFillColor(ColorMaker.rgb(0, 112, 14))

right(90,30)
left(82,20)
right(90,30)
left(90,20)
right(90,30)
right
forward(130)
savePosHe
setHeading(-50)
forward(125)
restorePosHe

setHeading(0)
hop(30)
setHeading(-90)
hop(30)





setPenColor(black)
setFillColor(cm.rgb(255, 255, 51))
setHeading(145)
   
    repeat(5) {
        forward(100)
        right(720 / 5)
    }
    setPenColor(noColor)
    setFillColor(cm.rgb(255, 255, 51))
setHeading(145)
   
    repeat(5) {
        forward(100)
        right(720 / 5)
    }
setPosition(-240, 350)
setHeading(90)
setPenFontSize(120)
setPenColor(red)
write("MERRY CHRISTMAS")
hop(-1000)
setHeading(90)
setPenFontSize(50)
setPenColor(red)
write("It's the most wonderful time of the year")
hop(-100)
setHeading(90)
setPenFontSize(40)
setPenColor(red)
write("AMOL S.NAIK,MURGAON HIGH SCHOOL,SADA,7TH")