Code Sketch
Gudi Padwa
cleari()
setSpeed(slow)
//showAxes()
def stick=Picture {
repeat(2) {
forward(350)
right(180,7)
}
}
def Gudi=Picture{
left()
forward(80)
right(125)
forward(30)
left(85)
forward(10)
right(95,50)
forward(10)
right(45)
forward(50)
right(45)
forward(10)
right(95,50)
forward(10)
left()
forward(30)
}
def flower=Picture{
repeat(5) {
left(78)
left(210,8)
}
}
def saree=Picture{
left(150)
right(20,150)
left(20,140)
right(20,150)
left(130)
right(20,150)
left(20,140)
right(10,150)
left(110)
right(20,150)
left(20,140)
right(20,150)
}
def line=Picture{
right(100)
right(20,150)
left(20,140)
}
def swastik=Picture{
repeat(4) {
right()
forward(14)
hop(-14)
right()
forward(20)
right()
forward(20)
}
}
def leaves=Picture{
left(150)
left(70,40)
left(100)
left(70,40)
}
stick.thatsRotated(-25).thatsTranslated(-90, -190).thatsFilledWith(Color(88, 65, 29)).thatsStrokeColored(Color(100, 64, 18)).draw
saree.thatsTranslated(15, 80).thatsFilledWith(Color(253, 14, 23)).thatsStrokeColored(Color(247, 131, 187)).draw
line.thatsTranslated(-55, -10).thatsStrokeSized(5).thatsStrokeColored(Color(255, 231, 39)).draw
line.thatsTranslated(-65, -25).thatsStrokeSized(5).thatsStrokeColored(Color(255, 231, 39)).draw
leaves.thatsTranslated(50, 70).thatsFilledWith(Color(95, 131, 35)).thatsStrokeColored(Color(0, 168, 16)).thatsRotated(-10).draw
leaves.thatsTranslated(35, 75).thatsFilledWith(Color(82, 177, 36)).thatsStrokeColored(Color(0, 168, 16)).thatsRotated(-10).draw
leaves.thatsTranslated(-35, 80).thatsFilledWith(Color(100, 142, 61)).thatsStrokeColored(Color(0, 168, 16)).thatsRotated(-30).draw
leaves.thatsTranslated(3, 80).thatsFilledWith(Color(95, 131, 35)).thatsStrokeColored(Color(0, 168, 16)).thatsRotated(-25).draw
leaves.thatsTranslated(-19, 80).thatsFilledWith(Color(82, 177, 36)).thatsStrokeColored(Color(0, 168, 16)).thatsRotated(-30).draw
flower.thatsTranslated(20, 80).thatsFilledWith(Color(255, 156, 25)).thatsStrokeColored(Color(249, 180, 14)).draw
flower.thatsTranslated(15, 60).thatsFilledWith(Color(250, 144, 26)).thatsStrokeColored(Color(249, 180, 14)).draw
flower.thatsTranslated(15, 40).thatsFilledWith(Color(255, 141, 25)).thatsStrokeColored(Color(249, 180, 14)).draw
flower.thatsTranslated(20, 20).thatsFilledWith(Color(250, 142, 23)).thatsStrokeColored(Color(249, 180, 14)).draw
flower.thatsTranslated(30, 0).thatsFilledWith(Color(255, 163, 43)).thatsStrokeColored(Color(249, 180, 14)).draw
flower.thatsTranslated(53, -0).thatsFilledWith(Color(252, 161, 42)).thatsStrokeColored(Color(249, 180, 14)).draw
flower.thatsTranslated(65, 15).thatsFilledWith(Color(255, 158, 28)).thatsStrokeColored(Color(249, 180, 14)).draw
flower.thatsTranslated(70, 38).thatsFilledWith(Color(249, 147, 49)).thatsStrokeColored(Color(249, 180, 14)).draw
flower.thatsTranslated(65, 60).thatsFilledWith(Color(249, 155, 32)).thatsStrokeColored(Color(249, 180, 14)).draw
Gudi.thatsRotated(-25).thatsTranslated(75, 50).thatsFilledWith(Color(255, 226, 26)).thatsStrokeColored(Color(243, 168, 12)).draw
flower.thatsTranslated(35, 108).thatsFilledWith(Color(255, 96, 33)).draw
flower.thatsTranslated(50, 103).thatsFilledWith(Color(255, 196, 79)).draw
flower.thatsTranslated(65, 97).thatsFilledWith(Color(255, 96, 33)).draw
flower.thatsTranslated(80, 90).thatsFilledWith(Color(255, 196, 79)).draw
swastik.thatsTranslated(5, 165).thatsRotated(-25).draw
setBackgroundV(Color(255, 131, 172), Color(64, 79, 231, 133))