Code Sketch
Diwali
clear()
setSpeed(superFast)
def backgroundColor = cm.radialMultipleGradient(
0, 0,
500,
Seq(0,0.8),
Seq(yellow, white),
false)
setBackground(backgroundColor)
//showAxes()
//showGrid()
def baseColor = cm.linearGradient(
0, 0, //points on axis
white, // color of datpoint
200, 0, //points on axis
Color(158, 104, 19), // color of datpoint
true)
setFillColor(baseColor)
//Base
right
hop(200)
right()
right(180, 200)
//left arc
right(120)
left(60, 200)
//right arc
left(60)
right(120)
left(60, 200)
penUp()
left(-60, 200)
right(60)
penDown()
//diya arc
def diyaColor = cm.radialMultipleGradient(
0, 0,
200,
Seq(0,0.25, 0.6),
Seq(red, yellow,orange),
false)
setFillColor(diyaColor)
right(30)
left(60, 200)
left(150)
right(30)
left(60, 200)
left(150)