cleari()
setSpeed(fast)
//showAxes()
//showGrid()
def baseColour = cm.linearGradient(
0, 0, // first point
Color(240, 164, 53),
200, 0, // second point
brown,
true)// symmetry distribution
def diyaColour = cm.radialMultipleGradient(
0, 0,
200,
Seq(0, 0.35, 0.70), // distribution of colours in percentage from starting point
Seq(red,yellow,orange), // colours to be mix
false)
def backgroundColour = cm.radialMultipleGradient(
0, 0, //start point
500, // radius
Seq(0, 0.8), // distribution of colours in percentage from starting point
Seq(yellow,white), // colours to be mix
false)
setBackground(backgroundColour)
setFillColor(baseColour)
//base
right // to turn
hop(200) // move 200 from 0
right() // face down
right(180,200) // draw arc (semi circle) of radius 200
//left arc
right(120)
left(60,200) // draw arc of 60 with radius 200
//right arc
//print(heading) // to get location we got 30
left(60) // to face up we need to turn 60
right(120) // as per previous arc
left(60,200)// repeat same arc
penUp() // move back with
left(-60,200)
right(60)
penDown()
//diya
//setFillColor(noColor) // set colour to none
setFillColor(diyaColour) // set colour to none
right(30)
left(60,200)
left(150) // face down
right(30)
left(60,200)
left(150) // face up
//print(heading)