cleari()
setSpeed(superFast)
def backgroundColor = cm.radialMultipleGradient(
0, 0, //from the centre
500, //till the radies
Seq(0, 0.7), //distribution from the centre that is yellow and white start from 0.8 percent
Seq(yellow, white),
false)
setBackground(backgroundColor)
def diyaBaseColor = cm.linearGradient(
0, 0,
Color(206, 120, 64, 165),
200, 0,
brown,
true)
setFillColor(diyaBaseColor)
right()
hop(200)
right()
right(180, 200)
//for the base of the diya
//left arc
right(120)
left(60, 200)
//right Arc
left(60)
right(120)
left(60, 200)
penUp()
left(-60, 200)
right(60)
penDown()
//for the flame of the diya
def flameColor = cm.radialMultipleGradient(
0, 0,
200, //lenght of the flame
Seq(0, 0.25, 0.6), //distribution of the required colors
Seq(red, yellow, orange), //what colors we need going from down to up
false)
setFillColor(flameColor)
right(30)
left(60, 200)
left(150)
right(30)
left(60, 200)
left(150)
hop(-200)
setPenFontSize(20)
setPenColor(red)
changePosition(-160, 0)
write("***Let Light Shine Out of Darkness***")