Code Sketch


dragonfly -Leann D John
By: Leann D. John
Category: Art
clear()
showAxes()
showGrid()
setSpeed(fast)
def body = Picture.ellipse(35,100).withFillColor(brown)
.thatsStrokeColored(brown)
def tail = Picture.ellipse(20,70).withTranslation(0,-120)
.withFillColor(brown)
.thatsStrokeColored(brown)
def wing1 = Picture.ellipse(25,100)
.withFillColor(cm.lightGreen).thatsStrokeColored(green)
.withRotation(75).withTranslation(-80,30)

def wing2 = Picture.ellipse(25,100)
.withFillColor(cm.lightGreen).thatsStrokeColored(green)
.withRotation(-75).withTranslation(80,30)
def wing3 = Picture.ellipse(25,100)
.withFillColor(cm.lightGreen).thatsStrokeColored(green)
.withRotation(135).withTranslation(80,60)
def wing4 = Picture.ellipse(25,100)
.withFillColor(cm.lightGreen).thatsStrokeColored(green)
.withRotation(50).withTranslation(-80,60)
draw (wing4,wing3,wing2,wing1,tail,body)