Code Sketch


Happy Mothers Day
By: Amol naik
Category: Programming
clear
setSpeed(medium)

setPenColor(black)
setFillColor(Color(255, 21, 241))
setPenThickness(5)
setHeading(80)
left(10,990)
left(10,120)
left(30,80)
setHeading(90)
hop(30)
setHeading(170)
hop(120)
setFillColor(Color(255, 153, 255))
left(170,50)
left(50,180)
left(30,390)
savePosHe
setHeading(130)
left(20,150)
setHeading(-143)
right(30,480)
restorePosHe
setFillColor(Color(255, 204, 204))
setHeading(49)
left(20,410)
left(40,20)
setHeading(19)
left(50,60)
left(20,20)
setHeading(50)
right(20,70)
left(180,5)
left(20,70)
setHeading(180)
forward(5)

repeat(3){
setHeading(60)
right(20,70)
left(180,5)
left(20,70)
setHeading(140)
forward(5)
}
setHeading(-90)
right(20,150)
setHeading(-119)
right(20,500)
setHeading(-20)
right(20,180)
setPosition(10,200)
setHeading(100)
penUp
left(10,620)
penDown
setFillColor(Color(255, 21, 241))
left(20,70)
setHeading(180)
forward(170)
setHeading(-120)
left(50,150)
right(20,550)
setHeading(0)
forward(180)



setHeading(80)
left(10,990)
left(10,120)
left(30,80)
setHeading(90)
hop(30)
setHeading(170)
hop(120)
setFillColor(Color(255, 153, 255))
left(170,50)
left(50,180)
left(30,390)
savePosHe
setHeading(130)
left(20,150)
setHeading(-143)
right(30,480)
restorePosHe
setPosition(-50,330)
setFillColor(Color(255, 204, 204))
setHeading(140)
right(30,90)
right(50,30)
right(59,10)
forward(50)
left(50,30)
left(45,10)
left(10,500)
setHeading(-160)
savePosHe
right(20,40)
restorePosHe
setHeading(10)
left(30,30)
left(99,5)
left(20,120)
right(60,30)
left(30,90)
left(20,20)
setHeading(-99)
right(50,150)
setHeading(140)
left(20,70)
left(190,23)
left(30,30)
savePosHe
setHeading(-70)
right(50,178)
setHeading(0)
forward(130)



setHeading(140)
right(30,90)
right(50,30)
right(59,10)
forward(50)
left(50,30)
left(45,10)
left(10,535)
setHeading(-160)

right(20,40)
restorePosHe
savePosHe
setFillColor(Color(51, 0, 51))
setHeading(-70)
right(60,228)
right(180,50)
setHeading(190)
right(180,50)
left(90,90)
right(90,100)
right(30,130)
right(90,30)
restorePosHe



setPosition(-50,330)
setFillColor(Color(255, 204, 204))
setHeading(140)
right(30,90)
right(50,30)
right(59,10)
forward(50)
left(50,30)
left(45,10)
left(10,500)
setHeading(-160)
savePosHe
right(20,40)
restorePosHe
setHeading(10)
left(30,30)
left(99,5)
left(20,120)
right(60,30)
left(30,90)
left(20,20)
setHeading(-99)
right(50,150)
setHeading(140)
left(20,70)
left(190,23)
left(30,30)
savePosHe
setHeading(-70)
right(50,178)
setHeading(0)
forward(130)



setHeading(140)
right(30,90)
right(50,30)
right(59,10)
forward(50)
left(50,30)
left(45,10)
left(10,535)
setHeading(-160)



setPosition(-10,460)
setFillColor(white)
right(30,50)
setHeading(-90)
left(190,20)
setHeading(-160)
right(30,50)



setPosition(-55,520)
setHeading(90)
left(50,40)
setHeading(-150)
left(50,50) 
setHeading(-15)
left(50,50)
setHeading(110)
left(20,20)
setHeading(-150)
setFillColor(black)
right(20,50)
setHeading(80)
right(20,54) 


 
     boy



def boy{
setFillColor(blue)
setPosition(230,480)
setHeading(-80)
forward(100)
setHeading(20)
forward(240)
savePosHe
setHeading(110)
forward(50)
left(20,520)
left(69,50)
left(20,720)
setHeading(-410)
right(20,170)
setHeading(30)
forward(120)
setHeading(-85)
forward(100)
restorePosHe
forward(-15)
setHeading(-40)
right(50,80)
right(40,20)
savePosHe
right(30,300)
setHeading(-100)
forward(140)
setHeading(180)
forward(70)
setHeading(100)
forward(150)
setHeading(75)
forward(80)

setPosition(150,350)
penDown
setFillColor(Color(255, 204, 204))
setHeading(49)
left(20,410)
left(40,20)
setHeading(19)
left(50,60)
left(20,20)
setHeading(50)
right(20,70)
left(180,5)
left(20,70)
setHeading(180)
forward(5)

repeat(3){
setHeading(60)
right(20,70)
left(180,5)
left(20,70)
setHeading(140)
forward(5)
}
setHeading(-90)
right(20,150)
setHeading(-119)
right(20,500)
setHeading(-20)
right(20,180)
setPosition(10,200)
setHeading(100)

restorePosHe
setFillColor(blue)
hop(50)
setHeading(-90)
forward(100)
setHeading(-40)
forward(70)
savePosHe
setHeading(-120)
forward(60)
setHeading(160)
right(50,205)
setHeading(80)
forward(40)
setHeading(40)
left(20,120)
restorePosHe
setFillColor(Color(255, 204, 204))
forward(30)
right(80,20)
forward(50)
right(140,10)
forward(38)
setHeading(180)
hop(150)
setHeading(-90)
forward(30)
right(90,20)
forward(60)
right(140,10)
forward(47)

setPosition(100,550)
setHeading(190)

setHeading(150)
forward(35)
left(180,8)
right(-1)
forward(25)

left(220)
forward(35)
left(180,8)
right(1)
forward(25)
left(200)
forward(35)
left(180,8)
right(1)
forward(35)

left(200)
forward(35)
left(180,8)
right(-2)
forward(30)
right()

right(60)
forward(25)
left(180,9)
right(-2)
forward(25)
setHeading(40)
forward(20)

hop(250)
setHeading(170)
hop(30)
setFillColor(Color(255, 204, 204))
setHeading(120)
forward(30)
setHeading(-150)
right(90,30)
setHeading(50)
left(20,70)
left(250,15)
setHeading(170)
right(70,40)
setHeading(-150)
right(50,100)
setHeading(-110)
left(30,100)
left(30,30)
right(60,30)
setHeading(0)
left(40,20)
setHeading(-60)
left(50,50)
right(30,40)
setPosition(100,720)
setHeading(150)
hop(5)
setFillColor(black)
right(100,20)
right(50,150)
right(45,45)
right(30,190)
right(50,50)



setFillColor(Color(255, 204, 204))
setHeading(120)
forward(30)
setHeading(-150)
right(90,30)
setHeading(50)
left(20,70)
left(250,15)
setHeading(170)
right(70,40)
setHeading(-150)
right(50,100)
setHeading(-110)
left(30,100)
left(30,30)
right(60,30)
setHeading(0)
left(40,20)
setHeading(-60)
left(50,50)
right(30,40)
setHeading(120)
hop(30)
setFillColor(white)
setHeading(-59)
left(180,15)
setHeading(-152)
left(10,150)
setHeading(130)
hop(60)
setFillColor(noColor)
right(150,15)

setPosition(-400,999)
setHeading(90)
setPenFontSize(90)
write("HAPPY MOTHER'S DAY")

setSpeed(fast)
setPosition(-450,810)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}
setPosition(-450,710)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}
setPosition(-450,610)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}

setPosition(-450,510)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}
setPosition(-450,410)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}

setPosition(-450,310)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}








setPosition(650,810)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}
setPosition(650,710)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}
setPosition(650,610)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}

setPosition(650,510)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}
setPosition(650,410)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}

setPosition(650,310)
setPenThickness(2)
setPenColor(Color(3, 3, 12, 244))
setFillColor(Color(251, 12, 19, 244))

repeat(20) {
   circle(20)
   right(90)
}
}