Code Sketch


coding of SHRI GANESHA in kojo by Amol Naik
By: Amol naik
clear()
setSpeed(fast)
setBackground(sky)
setPenColor(black)
setFillColor(orange)
setPenThickness(5)

def gradients =
  cm.linearMultipleGradient(
    0,900,
   0,-900,
    Seq(0,0.29,1),
    Seq(Color(51, 16, 37),
    Color(51, 51, 255),
    Color(51, 0, 255)),
    false)

    

def sky =
  cm.radialMultipleGradient(
   60, 103, 700,
    Seq(0,0.20,
    0.40,0.699999,
    0.89999,0.9,1
    ),
    Seq(Color(255, 251, 179), Color(255, 249, 76),
    Color(255, 102, 0),Color(255, 51, 0),Color(204, 0, 51),
    Color(186, 51, 0), Color(220, 0, 0)),
    false)



hop(190)

setBackground(sky)


right()
forward(100)
left(120)
forward(100)
left(120)
forward(100)
left(120)

setFillColor(color(244, 224, 182))
left(130)
forward(80)
left(140)
forward(170)
left(145)
forward(80)
right(145)
forward(50)
left(90,152)
left(130)
forward(15)
left(245)
forward(18)
right(225)
right(79,156)
right(130)
forward(80)
left(145)
forward(170)
left(140)
forward(78)
hop(50)
left(130)
right()
circle(10)
right()
hop(10)
left(280)
circle(10)
right(5)
hop(35)
left()
forward(35)
forward(-85)

setPenColor(red)
hop(50)
left()
forward(17)
left(180,5)
forward(17)
left(180)
hop(38)
left()
hop(9)
circle(2)
hop(-28)
circle(2)
hop(-23)
right()
hop(80)


setPenColor(black)
right(80)
left(336,170)
right(-15)

hop(80)
right(275)
left(90,152)
left(120)
forward(16)
left(265)
forward(22)
right(230)
right(80,158)
right(130)
setFillColor(white)
forward(35)
right(150)
forward(26)
left(30)
hop(80)
left(30)
forward(25)
left(210)
forward(35)
right(66)
hop(115)
setFillColor(color(244, 224, 182))
setPenColor(white)
right()
hop(45)
right(10)
right(15,199)
hop(80)
right(60,195)
left(178)
hop(170)
setPenColor(black)
setPenThickness(11)
circle(2)
right()
hop(50)
left()
hop(122)
right(-32)
setFillColor(orange)
setPenThickness(5)
right(50,140)
right(50,50)
right(60,60)
right(60,60)
right(6,60)
forward(170)
right(5)
hop(180)

left(50,140)
left(50,50)
left(60,60)
left(50,60)
left(6,60)
forward(175)
left(3)
hop(240)
left(320)
circle(40)
left(202.1)
hop(400)
left(200)
circle(40)
right(290)
hop(350)
right(-90)
hop(200)
right(90)
setPenFontSize(50)
write("shri ganesha")