Code Sketch


Tanishka (Him Jyoti)
By: Manish Mall
Category: Art
clear()
setSpeed(superFast)

setSpeed(superFast)
setPenThickness(2)
repeat(45)
  {
    forward(6)
    right(2.7)
}
repeat(45)
{
    hop(-6)
    left(2.7)
}
setPenThickness(5)
repeat(43)
{
    forward(6)
    right(2.7)
}
left(45,20)
forward(15)
hop(-15)
left(45,20)
hop(44)
left(180)
hop(120)
repeat(42)
{
    forward(4)
   right(2)
}
hop(175)
right(75)
hop(-70)
setPenThickness(2)
repeat(45)
{
    forward(6)
    left(2.7)
}
repeat(45)
{
    hop(-6)
    right(2.7)
}
setPenThickness(5)
repeat(43)
{
    forward(6)
    left(2.7)
}
right(45,20)
forward(15)
hop(-15)
right(45,20)
hop(44)
right(180)
hop(120)
repeat(42)
{
    forward(4)
   left(2)
}
hop(119)
left(75)
left()
repeat(45)
{
    forward(2)
    right(3)
}
forward(30)
left(20)
forward(10)
right(135)
hop(20)
right()
hop(3)
left()
repeat(40)
{
    forward(1.65)
    right(1.65)
} 
left(45)
hop(30)
left()
setFillColor(red)
repeat(360)
{
    forward(0.2)
    right(1)
}
repeat(180)
{
    forward(0.2)
    right(1)
}
left()
hop(111)
right()
hop(20)
left()
right(360)
setFillColor(white)
right(20)
repeat(70)
{
    forward(0.5)
    left(1.2)
}
right(70)
repeat(169)
    {
        forward(0.3)
        left(1.2)
    }
right(75)
repeat(145)
{
    forward(0.3)
    left(0.9)
}
right(75)
hop(-20)
left()
hop(5)
right()
setFillColor(Color(255, 255, 255, 12))
repeat(360)
{
    forward(1)
    right(1)
}
setPenColor(white)
repeat(360)
{
    forward(0.75)
    right(1)
}
repeat(180)
{
    hop(1)
    right(1)
}
left(180)
setPenColor(randomColor)
setFillColor(randomColor)
repeat(360)
{
    forward(0.2)
    right(1)
}
hop(25)
repeat(360)
{
    forward(0.2)
    right(1)
}
left(45)
hop(15)
repeat(360)
{
    forward(0.2)
    right(1)
}
left(10)
hop(24)
repeat(360)
{
    forward(0.2)
    right(1)
}
left(13)
hop(20)
repeat(360)
{
    forward(0.2)
    right(1)
}
left(25)
hop(24)
repeat(360)
{
    forward(0.2)
    right(1)
}
repeat(105)
{
    hop(-1.3)
    right(1)
}
hop(10)
left()
hop(14)
right()
repeat(360)
{
    forward(0.2)
    right(1)
}
repeat(20)
{
hop(-1)
right(1)
}
repeat(360)
{
    forward(0.2)
    right(1)
}
repeat(20)
{
hop(-1)
right(1)
}
repeat(360)
{
    forward(0.2)
    right(1)
}
repeat(20)
{
hop(-1)
right(1)
}
repeat(360)
{
    forward(0.2)
    right(1)
}
repeat(20)
{
hop(-1)
right(1)
}
repeat(360)
{
    forward(0.2)
    right(1)
}
right()
hop(22)
left()
setFillColor(randomColor)
setPenColor(randomColor)
repeat(360)
{
    forward(0.2)
    right(1)
}
hop(11)
repeat(360)
{
    forward(0.2)
    right(1)
}
hop(11)
repeat(360)
{
    forward(0.2)
    right(1)
}
right()
hop(100)
right()
hop(130)
right(135)
setFillColor(red)
setPenColor(red)
repeat(42)
{
    forward(4)
   right(2)
}
right(90)
setFillColor(black)
repeat(45)
{
    forward(4)
   right(2)
}
right()
forward(10)
right(45)
hop(45)
setFillColor(red)
right()
forward(55)
repeat(180)
{
    forward(0.5)
    left(1)
}
forward(55)
right()
hop(500)
left()
hop(-150)
setFillColor(Color(0, 0, 0, 5))
repeat(2)
{    setPenColor(red)
    forward(1000)
    left()
    setPenColor(Color(0, 246, 208))
     forward(1000)
    left()
}
hop(800)
left()
hop(800)
right()
setPenColor(randomColor)
write("HAPPY DIWALI TO ALL....")
setPenColor(red)
left()
hop(20)
right()
hop(20)
right()
hop(20)
repeat(2)
{
    forward(250)
    right()
    forward(50)
    right()
}
left()
hop(150)
left()
hop(130)
right()
right()
repeat(40)
{
    setPenColor(randomColor)
    setFillColor(randomColor)
repeat(360)
{
    setPenColor(randomColor)
    setFillColor(randomColor)
    forward(0.2)
    right(1)
}
repeat(90)
{
    forward(0.2)
    right(1)
}
left(180)
repeat(360)
{
    forward(0.2)
    right(1)
}
repeat(90)
{
    forward(0.2)
    right(1)
}
}

right()
hop(22.5)
repeat(40)
{
    setPenColor(randomColor)
    setFillColor(randomColor)
repeat(360)
{
    setPenColor(randomColor)
    setFillColor(randomColor)
    forward(0.2)
    right(1)
}
repeat(90)
{
    forward(0.2)
    right(1)
}
left(180)
repeat(360)
{
    forward(0.2)
    right(1)
}
repeat(90)
{
    forward(0.2)
    right(1)
}
}
right()
hop(22.5)
repeat(40)
{
    setPenColor(randomColor)
    setFillColor(randomColor)
repeat(360)
{
    setPenColor(randomColor)
    setFillColor(randomColor)
    forward(0.2)
    right(1)
}
repeat(90)
{
    forward(0.2)
    right(1)
}
left(180)
repeat(360)
{
    forward(0.2)
    right(1)
}
repeat(90)
{
    forward(0.2)
    right(1)
}
}

right()
hop(22.5)
repeat(40)
{
    setPenColor(randomColor)
    setFillColor(randomColor)
repeat(360)
{
    setPenColor(randomColor)
    setFillColor(randomColor)
    forward(0.2)
    right(1)
}
repeat(90)
{
    forward(0.2)
    right(1)
}
left(180)
repeat(360)
{
    forward(0.2)
    right(1)
}
repeat(90)
{
    forward(0.2)
    right(1)
}
}
right(180)
hop(100)
left()
hop(100)
setFillColor(Color(255, 255, 255, 0))
repeat(2)
{
    forward(700)
    right()
}
right()
right()
forward(75)
left()
repeat(2)
{
    forward(770)
    left()
}
forward(75)
hop(300)
left()
hop(500)
hop(575)
left()
hop(175)
right()
def cor()
{
def oops()
{
setPenThickness(4)
setPenColor(black)
left()
hop(40)
right()
repeat(8)
{
 setFillColor(randomColor.fadeOut(0.7))
    repeat(6)
    {
    right(100,50)
    left(160)
    
}
 right(45)
}
}
oops()
right(135)
hop(1500)
oops()
}
hop(20)
repeat(10)
{
cor()
}