Code Sketch


dragonfly
By: Sampada Dhupkar
cleari()
showAxes()
setSpeed(fast)

def body = Picture.ellipse(40, 100)
def tail = Picture.ellipse(20, 80)
def sWing = Picture.ellipse(40, 100)
def bWing = Picture.ellipse(30, 100)

def dragonfly = picStack(
    sWing.withRotation(55)
    .withTranslation(-30, 10)
    .withFillColor(cm.lightGreen)
    .thatsStrokeColored(green),
    
    sWing.withRotation(-55)
    .withTranslation(30, 10)
    .withFillColor(cm.lightGreen)
    .thatsStrokeColored(green),
    
    bWing.withRotation(120)
    .withTranslation(-50, -50)
    .withFillColor(cm.lightGreen)
    .thatsStrokeColored(green),
    
    bWing.withRotation(-120)
    .withTranslation(50, -50)
    .withFillColor(cm.lightGreen)
    .thatsStrokeColored(green),
    
    body.withFillColor(cm.brown)
    .thatsStrokeColored(brown),
     
    tail.withTranslation(0, -120)
    .withFillColor(cm.brown)
    .thatsStrokeColored(brown),
)
draw(dragonfly)