Code Sketch
Ice-cream Cone
clear()
setSpeed(fast)
def circle = {
Picture.circle(70)
}
def triangle = Picture{
forward(100)
right(120)
forward(100)
right(120)
forward(100)
right(120)
}
circle
.thatsFilledWith(red)
.thatsStrokeColored(red)
.thatsScaled(0.11, 0.11)
.thatsTranslated(-01,130)
.draw
circle
.thatsFilledWith(pink)
.thatsStrokeColored(pink)
.thatsScaled(0.5, 0.5)
.thatsTranslated(00,90)
.draw
circle
.thatsFilledWith(pink)
.thatsStrokeColored(pink)
.thatsTranslated(00,100)
.thatsScaled(0.5, 0.5)
.draw
circle
.thatsFilledWith(pink)
.thatsStrokeColored(pink)
.thatsScaled(0.5, 0.5)
.thatsTranslated(-30,50)
.draw
circle
.thatsFilledWith(pink)
.thatsStrokeColored(pink)
.thatsScaled(0.5, 0.5)
.thatsTranslated(30,50)
.draw
triangle
.thatsFilledWith(Color(230, 165, 63))
.thatsStrokeColored(Color(225, 165, 63))
.thatsRotated(-90)
.thatsScaled(1.0, 2.0)
.thatsTranslated(-50, 20)
.draw