Code Sketch


diya
By: chirag rankawat
Category: Art
clear()

showAxes()
showGrid()

setSpeed(superFast)

def backgroundColor = cm.radialMultipleGradient(
0, 0,
500,
Seq(0,0.8), 
Seq(yellow, white),
false)

setBackground(backgroundColor)
def baseColor = cm.linearGradient(
    0, 0,
    Color(158, 104, 19),
    200, 0,
    brown,
    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 by chirag
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)
//chirag cr7